Interface: UIStyle
Defined in: src/ui/UIElement.ts:30
Extends
Properties
:active?
optional:active:UIStateStyle
Defined in: src/ui/UIElement.ts:87
:disabled?
optional:disabled:UIStateStyle
Defined in: src/ui/UIElement.ts:88
:hover?
optional:hover:UIStateStyle
Defined in: src/ui/UIElement.ts:86
alignItems?
optionalalignItems:"center"|"flex-start"|"flex-end"|"stretch"
Defined in: src/ui/UIElement.ts:39
alignSelf?
optionalalignSelf:"auto"|"center"|"flex-start"|"flex-end"|"stretch"
Defined in: src/ui/UIElement.ts:40
backgroundColor?
optionalbackgroundColor:Paint
Defined in: src/ui/UIElement.ts:22
Inherited from
borderAlign?
optionalborderAlign:StrokeAlign
Defined in: src/ui/UIElement.ts:80
borderColor?
optionalborderColor:Paint
Defined in: src/ui/UIElement.ts:25
Inherited from
borderRadius?
optionalborderRadius:number
Defined in: src/ui/UIElement.ts:27
Inherited from
borderWidth?
optionalborderWidth:number
Defined in: src/ui/UIElement.ts:26
Inherited from
bottom?
optionalbottom:UIPosition
Defined in: src/ui/UIElement.ts:47
color?
optionalcolor:ColorRepresentation
Defined in: src/ui/UIElement.ts:23
Inherited from
columnGap?
optionalcolumnGap:number
Defined in: src/ui/UIElement.ts:53
display?
optionaldisplay:"none"|"flex"
Defined in: src/ui/UIElement.ts:81
dropShadowBlur?
optionaldropShadowBlur:number
Defined in: src/ui/UIElement.ts:76
dropShadowColor?
optionaldropShadowColor:Paint
Defined in: src/ui/UIElement.ts:75
dropShadowFalloff?
optionaldropShadowFalloff:number
Defined in: src/ui/UIElement.ts:79
dropShadowPosition?
optionaldropShadowPosition:UIVector2
Defined in: src/ui/UIElement.ts:77
dropShadowSpread?
optionaldropShadowSpread:number
Defined in: src/ui/UIElement.ts:78
flexBasis?
optionalflexBasis:number|"auto"
Defined in: src/ui/UIElement.ts:43
flexDirection?
optionalflexDirection:"row"|"column"
Defined in: src/ui/UIElement.ts:37
flexGrow?
optionalflexGrow:number
Defined in: src/ui/UIElement.ts:41
flexShrink?
optionalflexShrink:number
Defined in: src/ui/UIElement.ts:42
fontSize?
optionalfontSize:number
Defined in: src/ui/UIElement.ts:64
fontWeight?
optionalfontWeight:number|"bold"|"normal"|"medium"
Defined in: src/ui/UIElement.ts:65
gap?
optionalgap:number
Defined in: src/ui/UIElement.ts:51
height?
optionalheight:UIUnit
Defined in: src/ui/UIElement.ts:32
innerShadowBlur?
optionalinnerShadowBlur:number
Defined in: src/ui/UIElement.ts:71
innerShadowColor?
optionalinnerShadowColor:Paint
Defined in: src/ui/UIElement.ts:70
innerShadowFalloff?
optionalinnerShadowFalloff:number
Defined in: src/ui/UIElement.ts:74
innerShadowPosition?
optionalinnerShadowPosition:UIVector2
Defined in: src/ui/UIElement.ts:72
innerShadowSpread?
optionalinnerShadowSpread:number
Defined in: src/ui/UIElement.ts:73
justifyContent?
optionaljustifyContent:"center"|"flex-start"|"flex-end"|"space-between"
Defined in: src/ui/UIElement.ts:38
left?
optionalleft:UIPosition
Defined in: src/ui/UIElement.ts:48
lineHeight?
optionallineHeight:UILineHeight
Defined in: src/ui/UIElement.ts:67
Like CSS: numbers multiply fontSize; use px or % strings for explicit units.
margin?
optionalmargin:number
Defined in: src/ui/UIElement.ts:59
marginBottom?
optionalmarginBottom:number
Defined in: src/ui/UIElement.ts:62
marginLeft?
optionalmarginLeft:number
Defined in: src/ui/UIElement.ts:63
marginRight?
optionalmarginRight:number
Defined in: src/ui/UIElement.ts:61
marginTop?
optionalmarginTop:number
Defined in: src/ui/UIElement.ts:60
maxHeight?
optionalmaxHeight:number
Defined in: src/ui/UIElement.ts:36
maxWidth?
optionalmaxWidth:number
Defined in: src/ui/UIElement.ts:35
minHeight?
optionalminHeight:number
Defined in: src/ui/UIElement.ts:34
minWidth?
optionalminWidth:number
Defined in: src/ui/UIElement.ts:33
objectFit?
optionalobjectFit:"fill"|"contain"|"cover"
Defined in: src/ui/UIElement.ts:83
opacity?
optionalopacity:number
Defined in: src/ui/UIElement.ts:24
Inherited from
overflow?
optionaloverflow:"visible"|"hidden"
Defined in: src/ui/UIElement.ts:82
padding?
optionalpadding:number
Defined in: src/ui/UIElement.ts:54
paddingBottom?
optionalpaddingBottom:number
Defined in: src/ui/UIElement.ts:57
paddingLeft?
optionalpaddingLeft:number
Defined in: src/ui/UIElement.ts:58
paddingRight?
optionalpaddingRight:number
Defined in: src/ui/UIElement.ts:56
paddingTop?
optionalpaddingTop:number
Defined in: src/ui/UIElement.ts:55
position?
optionalposition:"relative"|"absolute"
Defined in: src/ui/UIElement.ts:44
right?
optionalright:UIPosition
Defined in: src/ui/UIElement.ts:46
rowGap?
optionalrowGap:number
Defined in: src/ui/UIElement.ts:52
textAlign?
optionaltextAlign:"left"|"right"|"center"
Defined in: src/ui/UIElement.ts:68
textOverflow?
optionaltextOverflow:"clip"|"ellipsis"
Defined in: src/ui/UIElement.ts:85
top?
optionaltop:UIPosition
Defined in: src/ui/UIElement.ts:45
transform?
optionaltransform:UITransform
Defined in: src/ui/UIElement.ts:49
verticalAlign?
optionalverticalAlign:"top"|"bottom"|"middle"
Defined in: src/ui/UIElement.ts:69
whiteSpace?
optionalwhiteSpace:"normal"|"nowrap"|"pre-line"
Defined in: src/ui/UIElement.ts:84
width?
optionalwidth:UIUnit
Defined in: src/ui/UIElement.ts:31
zIndex?
optionalzIndex:number
Defined in: src/ui/UIElement.ts:50