Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 3.14 KB

File metadata and controls

68 lines (41 loc) · 3.14 KB

:github_url: hide

IrregularGridContainer

Inherits: Container

Usefull GridContainer for ExpandableButton

Description

Arranges its children deppending of theirs minimum size and strech ratio in full rows. If theirs minimum sizes are equal then grid is formed. Each row is being left with additional free space for ExpandableButton to expand into, which does not mean that this space is hollow because it is splitted into sizes of all children in corresponding row.

See Control.size_flags_stretch_ratio and Control.get_combined_minimum_size for more details.

You might want to use GridContainer or SpanningTableContainer.

Properties

bool shrink_last_row false
float spacing 0.0

Property Descriptions

bool shrink_last_row = false

  • void set_shrink_last_row( value: bool )
  • bool is_last_row_shrinked( )

If true lenght of each element in last row is based on previous one.

float spacing = 0.0

  • void set_spacing( value: float )
  • float get_spacing( )

Defines size of spaces between elements and rows.

Note: this might be theme property in the future.

<style> LightGreen { color: LightGreen } KHAKI { color: KHAKI } </style>