Class GuiStyleBuilder
java.lang.Object
com.render.api.gui.style.GuiStyleBuilder
Mutable builder for a typed modern declaration block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalignContent(GuiAlignment alignment) alignItems(GuiAlignment alignment) alignSelf(GuiAlignment alignment) anchorName(String name) anchorPlacement(GuiAnchorPlacement placement) animatedBorder(GuiAnimatedBorder border) aspectRatio(GuiAspectRatio aspectRatio) backdropFilters(GuiFilterChain filters) Declares filters for the game and retained GUI content already painted behind the component.backfaceVisibility(GuiBackfaceVisibility visibility) Declares transformed back-face visibility.backgroundColor(RenderColor color) backgroundLayers(GuiBackgroundLayer... layers) backgroundLayers(List<GuiBackgroundLayer> layers) borderCollapse(GuiBorderCollapse collapse) borderColor(RenderColor color) borderSpacing(float spacing) borderWidth(float width) boxDecorationBreak(GuiBoxDecorationBreak behavior) boxShadows(GuiBoxShadow... shadows) boxShadows(List<GuiBoxShadow> shadows) boxSizing(GuiBoxSizing boxSizing) breakAfter(GuiBreakValue value) breakBefore(GuiBreakValue value) breakInside(GuiBreakValue value) build()Returns an immutable copy of the current declarations.captionSide(GuiCaptionSide side) caretStyle(GuiCaretStyle style) Declares editable-text caret appearance.clear()Clears all declarations.clipPath(GuiClipPath path) Declares the component clip path.color(RenderColor color) columnCount(int count) columnFill(GuiColumnFill fill) columnRule(GuiBorderSide rule) columnSpan(GuiColumnSpan span) columnWidth(GuiLength width) content(GuiGeneratedContent content) cornerRadius(float radius) counterIncrement(GuiCounterOperation... operations) counterReset(GuiCounterOperation... operations) counterSet(GuiCounterOperation... operations) <T> GuiStyleValue<T> declaration(GuiStyleProperty<T> property) Returns the currently declared value, ornullwhen absent.direction(GuiDirection direction) display(GuiDisplay display) emptyCells(GuiEmptyCells emptyCells) filters(GuiFilterChain filters) Declares the ordered foreground filter chain.flexDirection(GuiFlexDirection direction) flexGrow(float grow) flexShrink(float shrink) flexWrap(GuiFlexWrap wrap) gap(float gap) gradient(GuiGradient gradient) gridAutoFlow(GuiGridAutoFlow flow) gridPlacement(GuiGridPlacement placement) gridTemplate(GuiGridTemplate template) isolation(GuiIsolation isolation) justifyContent(GuiAlignment alignment) justifyItems(GuiAlignment alignment) justifySelf(GuiAlignment alignment) letterSpacing(float spacing) lineHeight(float multiplier) listStyleImage(GuiListMarkerImage image) listStylePosition(GuiListStylePosition position) listStyleType(GuiCounterStyle style) margin(float all) margin(float top, float right, float bottom, float left) marginBreak(GuiMarginBreak value) markerGap(float gap) markerSide(GuiMarkerSide side) maskLayers(GuiMaskLayer... layers) Declares ordered image-mask layers.maskLayers(List<GuiMaskLayer> layers) Declares ordered image-mask layers.motionPath(GuiMotionPath path) Declares a post-layout motion path.opacity(float opacity) order(int order) orphans(int lines) outline(GuiOutline outline) padding(float all) padding(float top, float right, float bottom, float left) position(float x, float y) positionType(GuiPositionType positionType) quotes(GuiQuotePairs quotes) remove(GuiStyleProperty<?> property) Removes a declaration.scrollMargin(float all) scrollMargin(GuiScrollInsets margin) <T> GuiStyleBuilderset(GuiStyleProperty<T> property, GuiStyleValue<T> value) Sets a literal or cascade-wide property value.<T> GuiStyleBuilderset(GuiStyleProperty<T> property, T value) Sets a literal property value.size(float width, float height) stackingIndex(int index) tableLayout(GuiTableLayout layout) textPaint(GuiTextPaint paint) textScalePixels(float pixels) textShadow(GuiShadow shadow) transform(GuiTransform transform) Declares an ordered post-layout transform list.Declares the box used to resolve transforms.transformOrigin(GuiTransformOrigin origin) Declares the normalized transform origin.transformStyle(GuiTransformStyle style) Declares flat or preserve-3D descendant behavior.translate(float x, float y) verticalAlign(GuiVerticalAlign verticalAlign) visibility(GuiVisibility visibility) widows(int lines)
-
Constructor Details
-
GuiStyleBuilder
public GuiStyleBuilder()
-
-
Method Details
-
set
Sets a literal property value.- Type Parameters:
T- property type- Parameters:
property- property metadatavalue- literal value- Returns:
- this builder
-
set
Sets a literal or cascade-wide property value.- Type Parameters:
T- property type- Parameters:
property- property metadatavalue- declaration value- Returns:
- this builder
-
remove
Removes a declaration.- Parameters:
property- property to remove- Returns:
- this builder
-
clear
-
declaration
Returns the currently declared value, ornullwhen absent.- Type Parameters:
T- property type- Parameters:
property- property- Returns:
- current declaration
-
color
-
content
-
counterReset
-
counterSet
-
counterIncrement
-
listStyleType
-
listStylePosition
-
listStyleImage
-
markerSide
-
markerGap
-
quotes
-
scrollMargin
-
scrollMargin
-
scrollSnapStop
-
backgroundColor
-
borderColor
-
borderWidth
-
cornerRadius
-
opacity
-
position
-
size
-
width
-
height
-
size
-
minWidth
-
maxWidth
-
minHeight
-
maxHeight
-
boxSizing
-
aspectRatio
-
display
-
positionType
-
inset
-
inset
-
stackingIndex
-
isolation
-
verticalAlign
-
flexDirection
-
flexWrap
-
flexGrow
-
flexShrink
-
flexBasis
-
order
-
justifyContent
-
alignItems
-
alignSelf
-
alignContent
-
rowGap
-
columnGap
-
gridTemplate
-
gridPlacement
-
gridAutoFlow
-
justifyItems
-
justifySelf
-
tableLayout
-
borderCollapse
-
borderSpacing
-
captionSide
-
emptyCells
-
columnCount
-
columnWidth
-
columnFill
-
columnRule
-
columnSpan
-
breakBefore
-
breakAfter
-
breakInside
-
widows
-
orphans
-
marginBreak
-
pageName
-
anchorName
-
anchorPlacement
-
translate
-
margin
-
margin
-
padding
-
padding
-
gap
-
textScalePixels
-
letterSpacing
-
lineHeight
-
textPaint
-
textShadow
-
textGlow
-
boxShadow
-
boxShadows
-
boxShadows
-
boxGlow
-
backgroundLayers
-
backgroundLayers
-
border
-
outline
-
boxDecorationBreak
-
gradient
-
animatedBorder
-
transform
Declares an ordered post-layout transform list.- Parameters:
transform- transform list- Returns:
- this builder
-
transformOrigin
Declares the normalized transform origin.- Parameters:
origin- transform origin- Returns:
- this builder
-
transformBox
Declares the box used to resolve transforms.- Parameters:
box- transform reference box- Returns:
- this builder
-
transformStyle
Declares flat or preserve-3D descendant behavior.- Parameters:
style- descendant transform behavior- Returns:
- this builder
-
backfaceVisibility
Declares transformed back-face visibility.- Parameters:
visibility- back-face behavior- Returns:
- this builder
-
motionPath
Declares a post-layout motion path.- Parameters:
path- motion-path declaration- Returns:
- this builder
-
clipPath
Declares the component clip path.- Parameters:
path- clip path- Returns:
- this builder
-
maskLayers
Declares ordered image-mask layers.- Parameters:
layers- mask layers in paint order- Returns:
- this builder
-
maskLayers
Declares ordered image-mask layers.- Parameters:
layers- mask layers in paint order- Returns:
- this builder
-
filters
Declares the ordered foreground filter chain.- Parameters:
filters- foreground filters- Returns:
- this builder
-
backdropFilters
Declares filters for the game and retained GUI content already painted behind the component. Foreground content remains in the sharp stratum.- Parameters:
filters- backdrop filters- Returns:
- this builder
-
caretStyle
Declares editable-text caret appearance.- Parameters:
style- caret style- Returns:
- this builder
-
direction
-
visibility
-
cursor
-
build
Returns an immutable copy of the current declarations.- Returns:
- declaration block
-