Layout are used to simplify the placement of widgets by using a grid system and modifying children position automatically.

How to Initialize any Layout?


To use layouts you have to call it from the function AddLayout from Widgets.


Class Details


Functions:


       Initialization & Main Functions

Name

Arguments

Return

Description

Init

  • Widgets: Owner - Which widget will use the layout.
  • LayoutType: Type - Type of the layout.

VOID

This function setter main variable

Launch

  • None

VOID

Launch will automatically call the Update function to make sure every children widgets are properly displayed.



Setters Functions


Name

Arguments

Return

Description

SetWidth

  • String: Width - new width for each children.

None

Set the width of each children widgets.


By using this you forcing the placement and might be overflow, if you're not using it will it evenly separate children from owner size.

SetHeight

  • String: Height - new width for each children.

None

Set the height of each children widgets.


By using this you forcing the placement and might be overflow, if you're not using it will it evenly separate children from owner size.

SetVerticalSpace

  • String: Size - new width for each children.

None

Set the vertical space of each children widgets.


By using this you forcing the placement and might be overflow, if you're not using it will it evenly separate children from owner size.

SetHorizontalSpace

  • String: Size - new width for each children.

None

Set the horizontal space of each children widgets.


By using this you forcing the placement and might be overflow, if you're not using it will it evenly separate children from owner size.


Private Details



All private details are usable but its recommended to not use any of those. It might modify the proper functioning of the class.


Variables (Members):


       Main Members

Name

Type

Default Value

Description

owner

Widgets

undefined

Owner of this layout.

type

LayoutType

undefined

Hold the layout type.

data

Class

{}

Class build by setters to hold information.


Functions:        

Update Functions

Name

Arguments

Return

Description

Update

  • None

None

This function will recalculate all size and position for all children widgets.



Compatibility



LANGUAGE CLASS: Not compatible.

Created with the Personal Edition of HelpNDoc: Easily create Help documents