PEd_GUIWidget

constructor

new PEd_GUIWidget()

Description

Base struct for widgets.

Properties

Name Description
Delegate The widget's parent.
Depth The widget's depth. User for sorting widgets within its parent.
Height The widget's height.
Id The id of the widget.
KeyboardShortcuts Keyboard shortcuts usable when the widget is active.
Redraw If true then the widget's content needs to be redrawed.
Tooltip The widget's tooltip displayed on mouse over.
Type The type of the widget.
Width The widget's width.
X The widget's position on the X axis.
Y The widget's position on the Y axis.

Methods

Name Description
AddKeyboardShortcut Adds keyboard shortcut to the widget.
DelegatesRecursive Finds out whether the widget delegates the item.
IsActive Gets whether the widget is active.
IsHovered Gets whether the widget is hovered.
IsSelected Gets whether the widget is selected.
SetHeight Sets the height of the widget.
SetPosition Sets the x and y position of the widget relative to its delegate.
SetRectangle Sets the x and y position of the widget relative to its delegate and its size.
SetSize Sets the width and height of the widget.
SetWidth Sets the width of the widget.

Copyright © 2022, BlueBurn. Built on September 12, 2022 using GMDoc.