-
Notifications
You must be signed in to change notification settings - Fork 2
IChildContainer
The IChildContainer implements child management methods and is used by Screen and Sheet.
IChildContainer:IChildContainer()
Sheet X = IChildContainer + Sheet X
Alias for addChild(). Adds a Sheet to the object and returns it.
IChildContainer = IChildContainer .. Sheet X
Adds a Sheet to the object and returns the object. Due to this, it is chainable:
object = object .. Sheet( ... ) .. Sheet( ... )child = IChildContainer:addChild( Sheet child )
Adds and returns a child.
child = IChildContainer:removeChild( Sheet child )
Removes a child. Will return nil if the child was not present to begin with.
table children = IChildContainer:getChildren()
Returns a list of the children of the object.
Sheet child = IChildContainer:getChildById( string id )
Returns the child found with the given id, or nil if not present.
table children = IChildContainer:getChildrenWithId( string id )
Returns a table of all the children with the given id.
table children = IChildContainer:getChildrenAt( number x, number y )
Returns a list of children at the given coordinates (using a mouse_ping event to test).
boolean visible = IChildContainer:isChildVisible( Sheet child )
Returns whether the child is visible based on its location and size.
IChildContainer:repositionChildZIndex( Sheet child )
Used internally when a child's Z changes. Re-calculates the child's position in the children table.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException