A generic widget.
AcceptDrops |
Accept drag and dropping shit on us |
Children |
Child widgets of this widget. |
ContentMargins |
|
ContentRect |
|
Cursor |
Cursor override for this widget. |
DebugModeEnabled |
Enable debug mode on this widget. |
DeleteOnClose |
Delete this widget when close is pressed |
DpiScale |
The scale this widget is using (multiplying Size by this value gives the actual native size) |
Enabled |
Makes the widget not interactable. This is also usually be reflected visually by the widget.
The widget will not process any keyboard or mouse inputs. Applies retroactively to all children. |
FixedHeight |
Sets the fixed height for this widget |
FixedSize |
|
FixedWidth |
Sets the fixed width for this widget |
FocusMode |
Sets the focus mode for this widget. This determines both how it will get focus and whether it will receive keyboard input. |
FocusProxy |
|
HasMaximizeButton |
|
Height |
Utility to interact with a widget's width - use Size where possible |
Hidden |
Whether this widget is hidden. This differs from Visible because this will return the state for
this particular widget, where as Visible returns false if a parent is hidden etc. |
HorizontalSizeMode |
|
IsActiveWindow |
|
IsBeingDroppedOn |
Whether something is being dragged over this widget. |
IsDraggable |
Whether this widget can be drag and dropped onto other widgets. |
IsFocused |
Whether this widget has keyboard focus. |
IsFramelessWindow |
|
IsMaximized |
|
IsMinimized |
|
IsPopup |
|
IsPressed |
Whether this widget is currently being pressed down or not. |
IsTooltip |
|
IsUnderMouse |
|
IsWindow |
|
Layout |
The widget's internal layout, if any |
LocalRect |
This panel's rect at 0,0 |
MaximumHeight |
This widgets height should never be larger than the given value. |
MaximumSize |
Sets Editor.Widget.MaximumWidth and Editor.Widget.MaximumHeight simultaneously. |
MaximumWidth |
This widgets width should never be larger than the given value. |
MinimumHeight |
This widgets height should never be smaller than the given value. |
MinimumSize |
Sets Editor.Widget.MinimumWidth and Editor.Widget.MinimumHeight simultaneously. |
MinimumWidth |
This widgets width should never be smaller than the given value. |
MouseTracking |
|
Name |
Name of the widget, usually for debugging purposes. |
NoSystemBackground |
|
Parent |
Parent widget. If non null, position of this widget will be relative to the parent widget. Certain events will also propagate to the parent widget if unhandled. |
PixmapCursor |
Custom cursor override for this widget.
Will override Editor.Widget.Cursor with Editor.CursorShape.CustomCursor. |
Position |
Position of this widget, relative to its parent if it has one. |
ProvidesDebugMode |
If true then this widget has a debug mode that can be activated |
ReadOnly |
Makes the widget read only. I.e. You can copy text of a text entry, but can't edit it.
Applies retroactively to all children. |
ScreenGeometry |
Returns the geometry of the screen this widget is currently on. |
ScreenPosition |
Position of the widget relative to the monitor's top left corner. |
ScreenRect |
This panel's rect in screen coordinates |
ShowWithoutActivating |
|
Size |
Size of this widget. |
StatusTip |
If set, hovering over this widget will set the text of a Editor.StatusBar of the window the widget belongs to. |
ToolTip |
If set, this text will be displayed after a certain delay of hovering this widget with the mouse cursor. |
TranslucentBackground |
|
TransparentForMouseEvents |
|
UpdatesEnabled |
If true, Update will call |
VerticalSizeMode |
|
Visible |
Whether this widget is visible or not, in the tree. This will return false if a parent is hidden. You
might want to set Hidden if you're looking to check local visible status on a widget. |
Width |
Utility to interact with a widget's width - use Size where possible |
WindowFlags |
|
WindowOpacity |
|
WindowTitle |
|
AdjustSize |
Adjusts the size of the widget to fit its contents. |
AlignToParent |
Align this widget to its parents edge, with an offset. |
Blur |
Clear keyboard focus from this widget. |
ChildValuesChanged |
|
ClearContext |
Remove a context on this widget. This will NOT remove contexts set from parent objects. |
Close |
If a window - will close |
ConstrainTo |
Reposition this widget to ensure it is within the given rectangle. |
ConstrainToScreen |
Constrain this widget to the screen it's currently on. |
DestroyChildren |
Destroys all child widgets of this widget. |
DisableWindowActivation |
Calling this will set the WS_EX_NOACTIVATE flag on the window internally, which will stop
it taking focus away from other windows. |
Focus |
|
FromScreen |
Transform coordinates relative to the monitors's top left corner, to coordinates relative to panel's top left corner. |
GetAncestor |
Find the closest ancestor widget of type |
GetContext |
Find a context on this widget. If not found, look at the parent. If not found, look at the parent.
This is useful for passing information down to child widgets without any effort. |
GetDescendants |
Get all descendants of type T |
GetWindow |
Get the top level window widget |
Hide |
Make this widget not visible. |
IsAncestorOf |
Returns whether or not the specified Widget is an ancestor of this Widget. |
IsDescendantOf |
Returns whether or not the specified Widget is a descendent of this Widget. |
IsModal |
Returns true if this is a modal window. This means it will appear on top of everything and block input to everything else. |
Lower |
Lowers the widget to the bottom of the parent widget's stack.
After this call the widget will be visually behind (and therefore obscured by) any overlapping sibling widgets. |
MakeMaximized |
|
MakeMinimized |
|
MakeSignal |
|
MakeWindowed |
|
OnDragDrop |
Something was dragged and dropped on this widget. Apply the data here, if its valid.
<para>Requires Editor.Widget.AcceptDrops to function.</para> |
OnDragHover |
Cursor with drag and drop data moved on this widget.
<para>Requires Editor.Widget.AcceptDrops to function.</para> |
OnDragLeave |
Cursor with drag and drop data left the bounds of this widget.
<para>Requires Editor.Widget.AcceptDrops to function.</para> |
PostKeyEvent |
|
Raise |
Raises this widget to the top of the parent widget's stack.
After this call the widget will be visually in front of any overlapping sibling widgets. |
RestoreGeometry |
Restore position and size previously stored via Editor.Widget.SaveGeometry. |
SaveGeometry |
Serialize position and size of this widget to a string, which can then be passed to Editor.Widget.RestoreGeometry(System.String). |
SetContentHash |
Call every frame/tick to redraw this Widget on content change |
SetContext |
Set a context value on this widget. This context will be available to its children via FindContext. |
SetEffectOpacity |
|
SetModal |
Set this window to be modal. This means it will appear on top of everything and block input to everything else. |
SetSizeMode |
|
SetStyles |
Directly set CSS style sheet(s) for this widget. Same format as a .css file. |
SetStylesheetFile |
Set a file to load CSS for this widget from. |
SetWindowIcon |
|
Show |
Make this widget visible. |
ToScreen |
Transform coordinates relative to the panel's top left corner, to coordinates relative to monitors's top left corner. |
Update |
Tell this widget that shit changed and it needs to redraw |
UpdateGeometry |
Tell everything that the geometry of this has changed |