LuaStyle

class LuaStyle - sort
gui :: LuaGui [R] Gui of the LuaGuiElement of this style.
name :: string [R] Name of this style.
minimal_width :: int [RW]
maximal_width :: int [RW]
minimal_height :: int [RW]
maximal_height :: int [RW]
natural_width :: int [RW]
natural_height :: int [RW]
top_padding :: int [RW]
right_padding :: int [RW]
bottom_padding :: int [RW]
left_padding :: int [RW]
top_margin :: int [RW]
right_margin :: int [RW]
bottom_margin :: int [RW]
left_margin :: int [RW]
horizontal_align :: string [RW] Horizontal align of the inner content of the widget, possible values are "left", "center" or "right"
vertical_align :: string [RW] Vertical align of the inner content of the widget, possible values are "top", "center" or "bottom"
font_color :: Color [RW]
font :: string [RW]
top_cell_padding :: int [RW] Space between the table cell contents top and border.
right_cell_padding :: int [RW] Space between the table cell contents right and border.
bottom_cell_padding :: int [RW] Space between the table cell contents bottom and border.
left_cell_padding :: int [RW] Space between the table cell contents left and border.
horizontally_stretchable :: boolean [RW] If the GUI element stretches its size horizontally to other elements.
vertically_stretchable :: boolean [RW] If the GUI element stretches its size vertically to other elements.
horizontally_squashable :: boolean [RW] If the GUI element can be squashed (by maximal with of some parent element) horizontally.
vertically_squashable :: boolean [RW] If the GUI element can be squashed (by maximal height of some parent element) vertically.
hovered_font_color :: Color [RW]
clicked_font_color :: Color [RW]
disabled_font_color :: Color [RW]
pie_progress_color :: Color [RW]
clicked_vertical_offset :: int [RW]
selected_font_color :: Color [RW]
selected_hovered_font_color :: Color [RW]
selected_clicked_font_color :: Color [RW]
strikethrough_color :: Color [RW]
horizontal_spacing :: int [RW] Horizontal space between individual cells.
vertical_spacing :: int [RW] Vertical space between individual cells.
use_header_filler :: boolean [RW]
color :: Color [RW]
column_alignments :: custom array of Alignment [R] Alignments of columns of the table
single_line :: boolean [RW]
extra_padding_when_activated :: int [RW]
extra_top_margin_when_activated :: int [RW]
extra_bottom_margin_when_activated :: int [RW]
extra_left_margin_when_activated :: int [RW]
extra_right_margin_when_activated :: int [RW]
stretch_image_to_widget_size :: boolean [RW]
badge_font :: string [RW]
badge_horizontal_spacing :: int [RW]
default_badge_font_color :: Color [RW]
selected_badge_font_color :: Color [RW]
disabled_badge_font_color :: Color [RW]
width :: int [W] Sets both minimal and maximal width to the given value
height :: int [W] Sets both minimal and maximal height to the given value
padding :: int [W] Sets top/right/bottom/left paddings to this value.
margin :: int [W] Sets top/right/bottom/left margins to this value.
cell_padding :: int [W] Space between the table cell contents and border.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

Style of a GUI element. All of the attributes listed here may be nil if not available for a particular GUI element.

gui :: LuaGui [Read-only]

Gui of the LuaGuiElement of this style.

name :: string [Read-only]

Name of this style.

minimal_width :: int [Read-Write]

maximal_width :: int [Read-Write]

minimal_height :: int [Read-Write]

maximal_height :: int [Read-Write]

natural_width :: int [Read-Write]

natural_height :: int [Read-Write]

top_padding :: int [Read-Write]

right_padding :: int [Read-Write]

bottom_padding :: int [Read-Write]

left_padding :: int [Read-Write]

top_margin :: int [Read-Write]

right_margin :: int [Read-Write]

bottom_margin :: int [Read-Write]

left_margin :: int [Read-Write]

horizontal_align :: string [Read-Write]

Horizontal align of the inner content of the widget, possible values are "left", "center" or "right"

vertical_align :: string [Read-Write]

Vertical align of the inner content of the widget, possible values are "top", "center" or "bottom"

font_color :: Color [Read-Write]

font :: string [Read-Write]

top_cell_padding :: int [Read-Write]

Space between the table cell contents top and border.

Can only be used if this is LuaTableStyle
right_cell_padding :: int [Read-Write]

Space between the table cell contents right and border.

Can only be used if this is LuaTableStyle
bottom_cell_padding :: int [Read-Write]

Space between the table cell contents bottom and border.

Can only be used if this is LuaTableStyle
left_cell_padding :: int [Read-Write]

Space between the table cell contents left and border.

Can only be used if this is LuaTableStyle
horizontally_stretchable :: boolean [Read-Write]

If the GUI element stretches its size horizontally to other elements.

vertically_stretchable :: boolean [Read-Write]

If the GUI element stretches its size vertically to other elements.

horizontally_squashable :: boolean [Read-Write]

If the GUI element can be squashed (by maximal with of some parent element) horizontally. This is mainly meant to be used for scroll-pane The default value is false.

vertically_squashable :: boolean [Read-Write]

If the GUI element can be squashed (by maximal height of some parent element) vertically. This is mainly meant to be used for scroll-pane The default (parent) value for scroll pane is true, false otherwise.

hovered_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
clicked_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
disabled_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle or LuaTabStyle
pie_progress_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
clicked_vertical_offset :: int [Read-Write]

Can only be used if this is LuaButtonStyle
selected_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
selected_hovered_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
selected_clicked_font_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
strikethrough_color :: Color [Read-Write]

Can only be used if this is LuaButtonStyle
horizontal_spacing :: int [Read-Write]

Horizontal space between individual cells.

Can only be used if this is LuaTableStyle, LuaFlowStyle, or LuaHorizontalFlow
vertical_spacing :: int [Read-Write]

Vertical space between individual cells.

Can only be used if this is LuaTableStyle, LuaFlowStyle, LuaVerticalFlowStyle, or LuaTabbedPaneStyle
use_header_filler :: boolean [Read-Write]

Can only be used if this is LuaFrameStyle
color :: Color [Read-Write]

Can only be used if this is LuaProgressBarStyle
column_alignments :: custom array of Alignment [Read-only]

Alignments of columns of the table

single_line :: boolean [Read-Write]

Can only be used if this is LabelStyle
extra_padding_when_activated :: int [Read-Write]

Can only be used if this is ScrollPaneStyle
extra_top_margin_when_activated :: int [Read-Write]

Can only be used if this is ScrollPaneStyle
extra_bottom_margin_when_activated :: int [Read-Write]

Can only be used if this is ScrollPaneStyle
extra_left_margin_when_activated :: int [Read-Write]

Can only be used if this is ScrollPaneStyle
extra_right_margin_when_activated :: int [Read-Write]

Can only be used if this is ScrollPaneStyle
stretch_image_to_widget_size :: boolean [Read-Write]

Can only be used if this is ImageStyle
badge_font :: string [Read-Write]

Can only be used if this is TabStyle
badge_horizontal_spacing :: int [Read-Write]

Can only be used if this is TabStyle
default_badge_font_color :: Color [Read-Write]

Can only be used if this is TabStyle
selected_badge_font_color :: Color [Read-Write]

Can only be used if this is TabStyle
disabled_badge_font_color :: Color [Read-Write]

Can only be used if this is TabStyle
width :: int [Write-only]

Sets both minimal and maximal width to the given value

height :: int [Write-only]

Sets both minimal and maximal height to the given value

padding :: int [Write-only]

Sets top/right/bottom/left paddings to this value.

margin :: int [Write-only]

Sets top/right/bottom/left margins to this value.

cell_padding :: int [Write-only]

Space between the table cell contents and border. Sets top/right/bottom/left cell paddings to this value.

Can only be used if this is LuaTableStyle