Construct a new widget with the given parent widget
Free all resources used by the widget and any children
Return the absolute position on screen
Variadic shorthand notation to construct and add a child widget
Add a child widget to the current widget at the specified index.
Convenience function which appends a widget at the end
Retrieves the child at the specific position
Retrieves the child at the specific position
Return the number of child widgets
Returns the index of a specific child or -1 if not found
Return the list of child widgets of the current widget
Check if the widget contains a certain position
Return a pointer to the cursor of the widget
Set the cursor of the widget
Draw the widget (and all child widgets)
Return whether or not this widget is currently enabled
Set whether or not this widget is currently enabled
Determine the widget located at the given position value (recursive)
Return the fixed height (see fixedSize)
Set the fixed height (see fixedSize)
Set the fixed size of this widget
Return the fixed size
Return the fixed width (see fixedSize)
Set the fixed width (see fixedSize)
Handle a focus change event (default implementation: record the focus status, but do nothing)
Return whether or not this widget is currently focused
Set whether or not this widget is currently focused
Return current font size. If not set the default of the current theme will be returned
Set the font size of this widget
Return whether the font size is explicitly specified for this widget
Return the height of the widget
Set the height of the widget
The amount of extra scaling applied to *icon* fonts. See nanogui.Widget.mIconExtraScale.
Sets the amount of extra scaling applied to *icon* fonts. See nanogui.Widget.mIconExtraScale.
Convenience definition for subclasses to get the full icon scale for this class of Widget. It simple returns the value mTheme.mIconScale * this.mIconExtraScale.
Return the ID value associated with this widget, if any
Handle text input (UTF-32 format) (default implementation: do nothing)
Handle a keyboard event (default implementation: do nothing)
Return the used nanogui.layout.Layout generator
Return the used nanogui.layout.Layout generator
Set the used nanogui.layout.Layout generator
Handle a mouse button event (default implementation: propagate to children)
Handle a mouse drag event (default implementation: do nothing)
Handle a mouse enter/leave event (default implementation: record this fact, but do nothing)
Handle a mouse motion event (default implementation: propagate to children)
Return the parent widget
Return the parent widget
Set the parent widget
Invoke the associated layout generator to properly place child widgets, if any
Return the position relative to the parent widget
Set the position relative to the parent widget
Compute the preferred size of the widget
Compute the preferred size of the widget considering its child except skipped one (for example button panel of window)
Remove a child widget by index
Remove a child widget by value
Request the focus to be moved to this widget
Walk up the hierarchy and return the parent screen
Handle a mouse scroll event (default implementation: propagate to children)
Associate this widget with an ID value (optional)
Return the size of the widget
set the size of the widget
Return the nanogui.theme.Theme used to draw this widget
Set the nanogui.theme.Theme used to draw this widget
Return whether or not the widget is currently visible (assuming all parents are visible)
Set whether or not the widget is currently visible (assuming all parents are visible)
Check if this widget is currently visible, taking parent widgets into account
Return the width of the widget
Set the width of the widget
Walk up the hierarchy and return the parent window
Whether or not this Widget is currently enabled. Various different kinds of derived types use this to determine whether or not user input will be accepted. For example, when `mEnabled == false`, the state of a CheckBox cannot be changed, or a TextBox will not allow new input.
The amount of extra icon scaling used in addition the the theme's default icon font scale. Default value is `1.0`, which implies that icon_scale simply returns the value of nanogui.Theme.mIconScale.
Whether or not this Widget is currently visible. When a Widget is not currently visible, no time is wasted executing its drawing method.
Base class of all widgets.
Widget is the base class of all widgets in nanogui. It can also be used as an panel to arrange an arbitrary number of child widgets using a layout generator (see nanogui.layout.Layout).