Skip to content

CellControl


Members

minHeight

desc: Whether or not the control has a minimum height.

type: bool

default: false

minHeightVal

desc: The minimum height of the control. Should be disregarded if GridGUI.CellControl.minHeight is false.

type: number

default: 0

minWidth

desc: Whether or not the control has a minimum width.

type: bool

default: false

minWidthVal

desc: The minimum width of the control. Should be disregarded if GridGUI.CellControl.minWidth is false.

type: number

default: 0

Methods

Draw

Draw(area)

Implementations of this interface should move and draw the control on the GUI in this method.

parameters

name: area

desc: The position to move the control to and size to draw the control at.

type: GridGUI.Position

GetPos

GetPos()

Implementations of this interface should return the position and size of the control.

return value

desc: The position and size of the control.

type: GridGUI.Position

MinSize

MinSize(w := "", h := "")

Sets the minimum size of the control. If both w and h are left unset then the minimum size will be set to the current size of the control as returned by GridGUI.CellControl.GetPos

parameters

name: w

desc: The minimum width to set. If left unset then the minimum width won't be changed.

type: number|""

default: ""

name: h

desc: The minimum height to set. If left unset then the minimum height won't be changed.

type: number|""

default: ""

Back to top