DTileLayout:
ClearTiles()
This is used internally - although you're able to use it you probably shouldn't.
Clears the panel's tile table. Used by DTileLayout:LayoutTiles.
DTileLayout:
ConsumeTiles(
number x,
number y,
number w,
number h )
This is used internally - although you're able to use it you probably shouldn't.
Called to designate a range of tiles as occupied by a panel.
Panel DTileLayout:
Copy()
Creates and returns an exact copy of the DTileLayout.
DTileLayout:
CopyContents(
Panel source )
Creates copies of all the children from the given panel object and parents them to this one.
number,
number DTileLayout:
FindFreeTile(
number x,
number y,
number w,
number h )
This is used internally - although you're able to use it you probably shouldn't.
Finds the coordinates of the first group of free tiles that fit the given size.
number DTileLayout:
GetBaseSize()
Returns the size of each single tile, set with DTileLayout:SetBaseSize.
number DTileLayout:
GetBorder()
Returns the border spacing set by DTileLayout:SetBorder.
number DTileLayout:
GetMinHeight()
Returns the minimum height the DTileLayout can resize to.
number DTileLayout:
GetSpaceX()
Returns the X axis spacing between 2 elements set by DTileLayout:SetSpaceX.
number DTileLayout:
GetSpaceY()
Returns the Y axis spacing between 2 elements set by DTileLayout:SetSpaceY.
any DTileLayout:
GetTile(
number x,
number y )
This is used internally - although you're able to use it you probably shouldn't.
Gets the occupied state of a tile.
DTileLayout:
Layout()
Resets the last width/height info, and invalidates the panel's layout, causing it to recalculate all child positions. It is called whenever a child is added or removed, and can be called to refresh the panel.
DTileLayout:
LayoutTiles()
This is used internally - although you're able to use it you probably shouldn't.
Called by PANEL:PerformLayout to arrange and lay out the child panels, if it has changed in size.
DTileLayout:
OnModified()
Called when anything is dropped on or rearranged within the DTileLayout.
DTileLayout:
SetBaseSize(
number size )
Sets the size of a single tile. If a child panel is larger than this size, it will occupy several tiles.
If you are setting the size of the children properly then you probably don't need to change this.
DTileLayout:
SetBorder(
number border )
Sets the spacing between the border/edge of the DTileLayout and all the elements inside.
DTileLayout:
SetMinHeight(
number minH )
Determines the minimum height the DTileLayout will resize to. This is useful if child panels will be added/removed often.
DTileLayout:
SetSpaceX(
number spacingX )
Sets the spacing between 2 elements in the DTileLayout on the X axis.
DTileLayout:
SetSpaceY(
number spaceY )
Sets the spacing between 2 elements in the DTileLayout on the Y axis.
DTileLayout:
SetTile(
number x,
number y,
any state )
This is used internally - although you're able to use it you probably shouldn't.
Called to set the occupied state of a tile.