|
Drag[en]gine Script Module DragonScript 1.35
|
Drop down list displaying the currently selected element. More...
Classes | |
| class | ComboPopup |
| Popup window. More... | |
| class | EditorFocusLost |
| class | EditorValueChanged |
| Editor value changed listener. More... | |
| class | PopupWidgetListener |
| class | RollUpMouseListener |
| Roll up mouse listener. More... | |
Public Member Functions | |
| void | contentChanged (ListModel listModel, int fromIndex, int toIndex) |
| Content of the model changed. | |
| void | dispose () |
| Dispose of widget. | |
| void | dropDown () |
| Drop down the list box if not already dropped down. | |
| bool | droppedDown () |
| Drop down list visible. | |
| void | elementsAdded (ListModel listModel, int fromIndex, int toIndex) |
| Elements have been added. | |
| void | elementsRemoved (ListModel listModel, int fromIndex, int toIndex) |
| Elements have been removed. | |
| Widget | getButtonDropDownWidget () |
| Drop down button widget or null if not set. | |
| Point | getDefaultElementSize () |
| Get default element size. | |
| ComboBoxEditor | getEditor () |
| Combo box editor if editable or null if not editable. | |
| ListElementRenderer | getElementRenderer () |
| List element renderer. | |
| bool | getExplicitDropDown () |
| Drop down only if clicking arrow or pressing directional keys. | |
| ListModel | getModel () |
| List model. | |
| int | getNumberDisplayLines () |
| Number of lines to display in the drop down list box. | |
| int | getSelectedElement () |
| Index of the selected item or -1 if none is selected. | |
| bool | getSelectFromEditorOnDropDown () |
| Set selected from editor value on drop down. | |
| Widget | getWidgetSelectedElement () |
| Selected element widget or null. | |
| void | grabFocus () |
| Grab focus if possible. | |
| ComboBox | new () |
| Create combo box widget. | |
| ComboBox | new (ListModel model) |
| Create combo box widget. | |
| ComboBox | new (ListModel model, ComboBoxEditor editor) |
| Create combo box widget. | |
| ComboBox | new (ListModel model, ListElementRenderer renderer) |
| Create combo box widget. | |
| ComboBox | new (ListModel model, ListElementRenderer renderer, ComboBoxEditor editor) |
| Create combo box widget. | |
| void | onArrowDown () |
| Arrow down pressed. | |
| void | onArrowUp () |
| Arrow up pressed. | |
| void | onButtonPress (MouseEvent event) |
| Mouse button pressed. | |
| void | onDesignerSelectorChanged () |
| Designer selector changed. | |
| void | onFocusLost (FocusEvent event) |
| Widget lost focus. | |
| void | onFocusReceived (FocusEvent event) |
| Widget received focus. | |
| void | onGamepadButtonPressed (GamepadEvent event) |
| Gamepad button has been pressed. | |
| void | onGuiThemeChanged () |
| Gui theme changed. | |
| void | onKeyPress (KeyEvent event) |
| Key pressed. | |
| void | onMouseWheel (MouseEvent event) |
| void | onPageDown () |
| Page down pressed. | |
| void | onPageUp () |
| Page up pressed. | |
| void | onResize (WidgetEvent event) |
| Size changed. | |
| bool | requestReleaseMouse (Widget widget) |
| Request to release mouse capture. | |
| void | rollUp () |
| Roll up the list box if dropped down. | |
| void | selectionChanged (ListModel listModel) |
| Selection in the list box changed. | |
| void | setDropDownButtonWidget (Widget widget) |
| Set drop down button widget or null if not set. | |
| void | setEditor (ComboBoxEditor editor) |
| Set combo box editor if editable or null if not editable. | |
| void | setElementRenderer (ListElementRenderer renderer) |
| Set list element renderer. | |
| void | setExplicitDropDown (bool explicitDropDown) |
| Drop down only if clicking arrow or pressing directional keys. | |
| void | setModel (ListModel model) |
| Set list model. | |
| void | setNumberDisplayLines (int lines) |
| Set number of lines to display in the drop down list box. | |
| void | setSelectedElement (int index) |
| Set index of the selected item or -1 if none is selected. | |
| void | setSelectedFromEditorValue () |
| Set selection from editor value. | |
| void | setSelectFromEditorOnDropDown (bool selectedFromEditorOnDropDown) |
| Set selected from editor value on drop down. | |
| void | startEditing () |
| Start editing if an editor is set. | |
| void | toggleDropDown () |
| Toggle between dropped down and rolled up state. | |
| void | updateDefaultElementSize () |
| Update default element size. | |
| void | updateSelectedVisibility () |
| Update visibility of editor and selected element renderer. | |
| void | updateSelectedWidget () |
| Update selected widget. | |
| Public Member Functions inherited from Dragengine.Gui.Container | |
| void | addWidget (Widget widget) |
| void | addWidget (Widget widget, Object settings) |
| bool | allowsChildGrabFocus () |
| void | collectClosestFocusWidget (ClosestDirectionFocusFinder finder, Point origin) |
| Find closest focus widget for directional navigation. | |
| void | doLayout () |
| Widget | findFocusableWidget () |
| Widget | findLastFocusableWidget () |
| Widget | findWidget (Block ablock) |
| Find widget using block or null if not found. | |
| int | getContainerHeight () |
| Point | getContainerSize () |
| int | getContainerWidth () |
| bool | getHasBlockedDoLayout () |
| doLayout calls happened during runWhileBlockingLayout. | |
| Layout | getLayout () |
| Point | getMinimumSize () |
| Point | getMinimumSizeForHeight (int height) |
| Minimum size of widget using reference widget height and variable width. | |
| Point | getMinimumSizeForWidth (int width) |
| Minimum size of widget using reference widget width and variable height. | |
| bool | getStateChangeNotifyChildren () |
| Notify children if state changed. | |
| Widget | getWidget (int index) |
| Widget | getWidgetAt (Point position) |
| Widget at coordinates or null if not found. | |
| int | getWidgetCount () |
| void | giveUpFocus () |
| bool | hasFocusWidget () |
| Focus widget is inside container somewhere. | |
| bool | hasWidget (Widget widget) |
| int | indexOfWidget (Widget widget) |
| Object | injectWidget (Object injectValue, Block ablock) |
| Process value visiting widgets using block. | |
| bool | isChildVisible (Widget child) |
| Child widget is visible. | |
| bool | isChildVisibleOnDesktop (Widget child) |
| Child widget is visible on desktop. | |
| bool | isMouseInside () |
| Mouse is hovering over this widget. | |
| void | layoutParent () |
| void | moveWidget (Widget widget, int newPosition) |
| Container | new (int x, int y, int width, int height) |
| Container | new (Layout layout) |
| Create container with layout. | |
| Container | new (Layout layout, Block blockAddContent) |
| Create container with layout calling block to add content. | |
| Container | new (Point position, Point size) |
| Widget | nextFocusWidgetAfter (Widget widget) |
| Find next widget in the focus cycle that can grab the focus. | |
| void | onPaddingChanged () |
| Padding changed. | |
| void | onStateChanged (StateChangeEvent event) |
| State changed. | |
| Widget | prevFocusWidgetAfter (Widget widget) |
| Find previous widget in the focus cycle that can grab the focus. | |
| void | removeAllWidgets () |
| Remove and dispose all widgets. | |
| void | removeWidget (Widget widget) |
| Remove widget without disposing. | |
| bool | requestCaptureDirectional (Widget widget) |
| Request to capture directional navigation for the specified widget. | |
| bool | requestCaptureMouse (Widget widget) |
| bool | requestReleaseDirectional (Widget widget) |
| Request to release directional navigation capture. | |
| void | runWhileBlockingLayout (Block ablock) |
| Run block while layouting is blocked. | |
| void | setEnabled (bool enabled) |
| void | setHasBlockedDoLayout (bool hasBlockedDoLayout) |
| Set if doLayout calls happened during runWhileBlockingLayout. | |
| void | setLayout (Layout layout) |
| void | setMousePointer (MousePointerFactory mousePointer) |
| Set mouse pointer to use. | |
| void | setStateChangeNotifyChildren (bool notify) |
| Set to notify children if state changed. | |
| Public Member Functions inherited from Dragengine.Gui.Widget | |
| void | addDragListener (DragListener listener) |
| void | addFocusListener (FocusListener listener) |
| Add focus listener. | |
| void | addGamepadListener (GamepadListener listener) |
| Add gamepad listener. | |
| void | addKeyListener (KeyListener listener) |
| void | addMouseListener (MouseListener listener) |
| void | addStateChangeListener (StateChangeListener listener) |
| Add state change listener. | |
| void | addWidgetListener (WidgetListener listener) |
| Add widget listener. | |
| bool | canGrabFullFocus () |
| void | captureDirectional () |
| Captures directional navigation if not already captured by another widget. | |
| void | design () |
| Design widget using WidgetDesigner. | |
| void | desktopWarpMouseFocusHere () |
| Warp mouse to focus location on this widget. | |
| void | desktopWarpMouseFocusLocation () |
| Warp mouse to focus location on desktop focus widget. | |
| void | ensureVisible () |
| Ensure widget is fully visible on desktop if possible. | |
| void | ensureVisible (RectArea boundary) |
| Ensure boundary is visible on desktop if possible. | |
| void | focusDirectional (int direction) |
| Focus widget in direction that can grab the focus. | |
| CanvasCreator | getBackgroundCanvasCreator () |
| Background canvas creator or null to use background color. | |
| bool | getBlockLayoutParent () |
| Block layoutParent calls. | |
| Border | getBorder () |
| BorderSize | getBorderSize () |
| RectArea | getBoundary () |
| Rectangular boundary of the widget. | |
| RectArea | getBoundaryWithBorder () |
| Rectangular boundary of the widget including border. | |
| bool | getCanFocus () |
| bool | getCanFocusDirectional () |
| Widget can get focus using directional navigation. | |
| CanvasView | getCanvasBackground () |
| CanvasView | getCanvasContent () |
| CanvasView | getCanvasWidget () |
| Clipboard | getClipboard () |
| Clipboard or null to use parent clipboard. | |
| ColorMatrix | getColorTransformation () |
| Color transformation. | |
| WidgetDesigner | getDesigner () |
| Designer. | |
| String | getDesignerSelector () |
| Designer selector. | |
| Desktop | getDesktop () |
| RectArea | getDesktopBoundary () |
| Rectangular boundary of widget relative to desktop. | |
| RectArea | getDesktopBoundaryWithBorder () |
| Rectangular boundary of widget including border relative to parent. | |
| Point | getDesktopPosition () |
| Widget position in desktop coordinates. | |
| Widget | getDirectionalCaptureWidget () |
| Widget having captured directional navigation. | |
| bool | getEnabled () |
| MousePointerFactory | getFirstMousePointer () |
| First assigned mouse pointer. | |
| Point | getFocusMouseLocation () |
| Focus mouse location in widget coordinates. | |
| Font | getFont () |
| bool | getHasBlockedLayoutParent () |
| layoutParent calls happened during runWhileBlockingLayoutParent. | |
| bool | getHasFocus () |
| int | getHeight () |
| Height of widget. | |
| RangeModel | getHorizontalRangeModel () |
| Horizontal range model for viewports to synchronize the horizontal scrollbar. | |
| Widget | getHoverWidget () |
| Widget the mouse hovers above or null. | |
| Point | getLocalMouseLocation () |
| Parent desktop mouse location in widget coordinates. | |
| Point | getMinimumSizeWithBorder () |
| Point | getMinimumSizeWithBorderForHeight (int height) |
| Minimum size of widget with border using reference height. | |
| Point | getMinimumSizeWithBorderForWidth (int width) |
| Minimum size of widget with border for reference width. | |
| Widget | getMouseCaptureWidget () |
| Widget having captured the mouse. | |
| MousePointerFactory | getMousePointer () |
| Mouse pointer to use. | |
| BorderSize | getPadding () |
| Padding. | |
| Container | getParent () |
| Point | getPosition () |
| Position of the widget. | |
| bool | getProtectBackgroundCanvasCreator () |
| Protect custom set background canvas creator. | |
| bool | getProtectBorder () |
| Protect custom set border. | |
| bool | getProtectFont () |
| Protect custom set font. | |
| bool | getProtectMinimumSize () |
| Protect custom set minimumsize. | |
| bool | getProtectMousePointer () |
| Protect custom set mouse pointer. | |
| bool | getProtectPadding () |
| Protect custom set padding. | |
| bool | getProtectTextColor () |
| Protect custom set text color. | |
| RectArea | getRelativeBoundary (Container parent) |
| Rectangular boundary of widget relative to parent. | |
| RectArea | getRelativeBoundaryWithBorder (Container parent) |
| Rectangular boundary of widget including border relative to parent. | |
| Point | getRelativePosition (Container parent) |
| Widget position in parent widget coordinates. | |
| Point | getScreenPosition () |
| Widget position in screen coordinates. | |
| RectArea | getScreenRectArea () |
| Point | getSetMinimumSize () |
| Point | getSize () |
| Size of the widget. | |
| Color | getTextBorderColor () |
| Text border color. | |
| float | getTextBorderThickness () |
| Text border thickness in percentage of the font size or null. | |
| Color | getTextColor () |
| Text color. | |
| float | getTextDilation () |
| Text dilation in percentage of the font size. | |
| String | getTitle () |
| Widget title. | |
| Object | getToolTip () |
| Tooltip or null. | |
| float | getTotalTransparency () |
| TexMatrix2 | getTransformation () |
| float | getTransparency () |
| RangeModel | getVerticalRangeModel () |
| Vertical range model for viewports to synchronize the vertical scrollbar. | |
| bool | getVisible () |
| RectArea | getVisibleDesktopBoundary () |
| Visible widget boundary in desktop coordinates. | |
| RectArea | getVisibleRelativeBoundary (Container parent) |
| Visible widget boundary relative to parent coordinate system. | |
| int | getWidth () |
| Width of widget. | |
| Window | getWindow () |
| Point | getWindowPosition () |
| Widget position in window coordinates. | |
| int | getX () |
| X position of widget. | |
| int | getY () |
| Y position of widget. | |
| bool | hasParent (Container container) |
| bool | isCapturingDirectional () |
| Widget is capturing directional navigation. | |
| bool | isCapturingMouse () |
| Widget is capturing mouse. | |
| bool | isDesignerSet () |
| Custom designer is set. | |
| bool | isFullEnabled () |
| Widget and all parent widgets are enabled. | |
| bool | isMinimumSizeSet () |
| bool | isPointInside (Point position) |
| bool | isTransformationSet () |
| void | layoutParentIfBlocked () |
| Calls layoutParent if getHasBlockedLayoutParent() is true. | |
| Widget | nextFocusWidget () |
| Find next widget in the focus cycle that can grab the focus. | |
| void | notifyBorderParametersChanged () |
| void | onDesignerChanged () |
| Designer changed. | |
| void | onDispose (WidgetEvent event) |
| Window is disposing. | |
| void | onFrameUpdate (float elapsed) |
| Do frame update. | |
| void | onGamepadButtonReleased (GamepadEvent event) |
| Gamepad button has been released. | |
| void | onHidden (WidgetEvent event) |
| Widget has been hidden. | |
| void | onParentStateChanged () |
| Parent state changed. | |
| void | onParentStateChanged (bool force) |
| Parent state changed. | |
| void | onReposition (WidgetEvent event) |
| Position changed. | |
| void | onSetFont () |
| void | onSetTextColor () |
| Text parameters changed. | |
| void | onSetTextDilation () |
| Text parameters changed that affect text dilation. | |
| void | onShown (WidgetEvent event) |
| Widget has been shown. | |
| void | onTranslationChanged () |
| Translation manager or active language pack changed. | |
| void | popdownVirtualKeyboard () |
| Popdown virtual keyboard if Desktop has one assigned. | |
| void | popdownVirtualKeyboardDirectional () |
| Popdown virtual keyboard if Desktop has one assigned and direction focus widget. | |
| void | popupVirtualKeyboard () |
| Popup virtual keyboard if Desktop has one assigned. | |
| Widget | prevFocusWidget () |
| Find previous widget in the focus cycle that can grab the focus. | |
| void | processEvent (Event event) |
| Process an event. | |
| void | releaseDirectional () |
| Release directional navigation capture. | |
| void | releaseMouse () |
| void | removeDragListener (DragListener listener) |
| void | removeFocusListener (FocusListener listener) |
| Remove focus listener. | |
| void | removeGamepadListener (GamepadListener listener) |
| Remove gamepad listener. | |
| void | removeKeyListener (KeyListener listener) |
| void | removeMouseListener (MouseListener listener) |
| void | removeStateChangeListener (StateChangeListener listener) |
| Remove state change listener. | |
| void | removeWidgetListener (WidgetListener listener) |
| Remove widget listener. | |
| void | requestGrabFocus (Widget widget) |
| void | runWhileBlockingLayoutParent (Block ablock) |
| Run block while layouting is blocked. | |
| void | safeDispose () |
| Safely dispose of widget. | |
| void | sendEvent (Event event) |
| void | sendEventToListeners (Event event, bool sendToParent) |
| Send event to all appropriate listeners for events of its kind. | |
| void | setBackgroundCanvasCreator (CanvasCreator creator) |
| Set background canvas creator or null to use background color. | |
| void | setBlockLayoutParent (bool blockLayoutParent) |
| Set block layoutParent calls. | |
| void | setBorder (Border border) |
| void | setCanFocus (bool canFocus) |
| void | setCanFocusDirectional (bool canFocus) |
| Set if widget can get focus using directional navigation. | |
| void | setClipboard (Clipboard clipboard) |
| Set clipboard or null to use parent clipboard. | |
| void | setColorTransformation (ColorMatrix transformation) |
| Set color transformation. | |
| void | setDesigner (WidgetDesigner designer) |
| Set designer. | |
| void | setDesignerSelector (String selector) |
| Set designer selector. | |
| void | setFont (Font font) |
| void | setHasBlockedLayoutParent (bool hasBlockedLayoutParent) |
| Set if layoutParent calls happened during runWhileBlockingLayoutParent. | |
| void | setHasFocus (bool hasFocus) |
| void | setHeight (int height) |
| Set height of widget. | |
| void | setMinimumSize (Point size) |
| void | setPadding (BorderSize padding) |
| Set padding. | |
| void | setParent (Container parent) |
| void | setPosition (Point position) |
| Set position of widget. | |
| void | setProtectBackgroundCanvasCreator (bool protect) |
| Set protect custom set background canvas creator. | |
| void | setProtectBorder (bool protect) |
| Set protect custom set border. | |
| void | setProtectFont (bool protect) |
| Set protect custom set font. | |
| void | setProtectMinimumSize (bool protect) |
| Set protect custom set minimumsize. | |
| void | setProtectMousePointer (bool protect) |
| Set protect custom set mouse pointer. | |
| void | setProtectPadding (bool protect) |
| Set protect custom set padding. | |
| void | setProtectTextColor (bool protect) |
| Set protect custom set text color. | |
| void | setSize (Point size) |
| Set size of widget. | |
| void | setTextBorderColor (Color color) |
| Set text border color. | |
| void | setTextBorderThickness (float thickness) |
| Set text border thickness in percentage of the font size or null. | |
| void | setTextColor (Color color) |
| Set text color. | |
| void | setTextDilation (float dilation) |
| Set text dilation in percentage of the font size. | |
| void | setTitle (String title) |
| Set widget title. | |
| void | setToolTip (Object toolTip) |
| Set tooltip or null. | |
| void | setTransformation (TexMatrix2 transformation) |
| void | setTransparency (float transparency) |
| void | setVisible (bool visible) |
| void | setWidth (int width) |
| Set width of widget. | |
| void | setX (int x) |
| Set X position of widget. | |
| void | setY (int y) |
| Set Y Position of widget. | |
| void | simulateKeyPress (int keyCode, int keyChar) |
| Simulate keyboard press event. | |
| void | simulateKeyPressRelease (int keyCode, int keyChar) |
| Simulate keyboard press and release event. | |
| void | simulateKeyRelease (int keyCode, int keyChar) |
| Simulate keyboard release event. | |
| void | startFrameUpdater () |
| Start frame updater if not running. | |
| void | stopFrameUpdater () |
| Stop frame updater if running. | |
Protected Member Functions | |
| bool | getDropDownRequiresSelectFromEditor () |
| Select from editor value is required during next drop down. | |
| void | setDropDownRequiresSelectFromEditor (bool requiresSelectFromEditor) |
| Set select from editor value is required during next drop down. | |
| Protected Member Functions inherited from Dragengine.Gui.Widget | |
| WidgetDesigner | getDesignerFromTheme () |
| Get designer from gui theme. | |
| void | updateCanvasBackground () |
| Update background canvas content. | |
| void | updateCanvasGeometry () |
| Update canvas position and size. | |
Drop down list displaying the currently selected element.
Supports designing using designer selector "ComboBox". The drop-down list box supports desining using designer selector "ListBox.ComboBox".
| void Dragengine.Gui.ComboBox.contentChanged | ( | ListModel | listModel, |
| int | fromIndex, | ||
| int | toIndex ) |
Content of the model changed.
Implements Dragengine.Gui.ListModelListener.
References Dragengine.Gui.Container.getWidget(), pEditor, pEditorFocusLost, and Dragengine.Gui.Widget.removeFocusListener().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.dispose | ( | ) |
Dispose of widget.
Reimplemented from Dragengine.Gui.Widget.
Referenced by elementsRemoved(), new(), and updateDefaultElementSize().
| void Dragengine.Gui.ComboBox.dropDown | ( | ) |
Drop down the list box if not already dropped down.
Referenced by onGamepadButtonPressed().
| bool Dragengine.Gui.ComboBox.droppedDown | ( | ) |
Drop down list visible.
References Dragengine.Gui.Widget.sendEvent().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.elementsAdded | ( | ListModel | listModel, |
| int | fromIndex, | ||
| int | toIndex ) |
Elements have been added.
Implements Dragengine.Gui.ListModelListener.
References setEditor().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.elementsRemoved | ( | ListModel | listModel, |
| int | fromIndex, | ||
| int | toIndex ) |
Elements have been removed.
Implements Dragengine.Gui.ListModelListener.
References dispose(), and pEditor.
Referenced by onGamepadButtonPressed().
| Widget Dragengine.Gui.ComboBox.getButtonDropDownWidget | ( | ) |
Drop down button widget or null if not set.
For use by button designers.
References new(), and Dragengine.Gui.Widget.setCanFocus().
Referenced by getNumberDisplayLines(), and onGamepadButtonPressed().
| Point Dragengine.Gui.ComboBox.getDefaultElementSize | ( | ) |
Get default element size.
References pDropDown.
|
protected |
Select from editor value is required during next drop down.
References pEditor, pPanelSelectedElement, pSelectedElement, pSpacer, pWidgetButtonDropDown, and pWidgetButtonDropDownContainer.
Referenced by onGamepadButtonPressed().
| ComboBoxEditor Dragengine.Gui.ComboBox.getEditor | ( | ) |
Combo box editor if editable or null if not editable.
Referenced by getModel(), and onGamepadButtonPressed().
| ListElementRenderer Dragengine.Gui.ComboBox.getElementRenderer | ( | ) |
List element renderer.
References Dragengine.Gui.Widget.getDesktopPosition(), Dragengine.Gui.Widget.getPosition(), and Dragengine.Gui.Widget.isPointInside().
Referenced by onPageDown(), and onPageUp().
| bool Dragengine.Gui.ComboBox.getExplicitDropDown | ( | ) |
Drop down only if clicking arrow or pressing directional keys.
If true clicking on widget or receiving focus does not drop down. By default false.
References Dragengine.Gui.Widget.sendEvent().
Referenced by onGamepadButtonPressed().
| ListModel Dragengine.Gui.ComboBox.getModel | ( | ) |
List model.
References getEditor().
Referenced by getWidgetSelectedElement(), new(), onArrowUp(), and onGamepadButtonPressed().
| int Dragengine.Gui.ComboBox.getNumberDisplayLines | ( | ) |
Number of lines to display in the drop down list box.
References getButtonDropDownWidget().
Referenced by onGamepadButtonPressed().
| int Dragengine.Gui.ComboBox.getSelectedElement | ( | ) |
Index of the selected item or -1 if none is selected.
References Dragengine.Gui.Widget.getDesktopPosition(), and Dragengine.Gui.Widget.getPosition().
Referenced by onGamepadButtonPressed().
| bool Dragengine.Gui.ComboBox.getSelectFromEditorOnDropDown | ( | ) |
Set selected from editor value on drop down.
If true delays sets selected from editor value until drop down. If false sets selected from editor immediately. This can be slow down UI if the list has many elements.
Default value is true.
References Dragengine.Gui.Widget.sendEvent().
Referenced by onGamepadButtonPressed().
| Widget Dragengine.Gui.ComboBox.getWidgetSelectedElement | ( | ) |
| void Dragengine.Gui.ComboBox.grabFocus | ( | ) |
Grab focus if possible.
If an editor is set grabs focus of edit widget instead.
Reimplemented from Dragengine.Gui.Widget.
References new().
Referenced by onGamepadButtonPressed().
| ComboBox Dragengine.Gui.ComboBox.new | ( | ) |
Create combo box widget.
Reimplemented from Dragengine.Gui.Container.
References getModel(), and pListBox.
Referenced by getButtonDropDownWidget(), grabFocus(), onArrowDown(), onButtonPress(), onDesignerSelectorChanged(), onFocusLost(), onGuiThemeChanged(), onKeyPress(), onResize(), and requestReleaseMouse().
Create combo box widget.
References pListBox.
| ComboBox Dragengine.Gui.ComboBox.new | ( | ListModel | model, |
| ComboBoxEditor | editor ) |
Create combo box widget.
| ComboBox Dragengine.Gui.ComboBox.new | ( | ListModel | model, |
| ListElementRenderer | renderer ) |
Create combo box widget.
References dispose().
| ComboBox Dragengine.Gui.ComboBox.new | ( | ListModel | model, |
| ListElementRenderer | renderer, | ||
| ComboBoxEditor | editor ) |
Create combo box widget.
References pListBox.
| void Dragengine.Gui.ComboBox.onArrowDown | ( | ) |
Arrow down pressed.
References new(), and setModel().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onArrowUp | ( | ) |
Arrow up pressed.
References getModel(), pListBox, and setModel().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onButtonPress | ( | MouseEvent | event | ) |
Mouse button pressed.
References new(), pEditorValueChanged, and pListBox.
Referenced by onGamepadButtonPressed(), and Dragengine.Gui.ComboBox.PopupWidgetListener.onWidgetHidden().
| void Dragengine.Gui.ComboBox.onDesignerSelectorChanged | ( | ) |
Designer selector changed.
Reimplemented from Dragengine.Gui.Widget.
References new(), and setEditor().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onFocusLost | ( | FocusEvent | event | ) |
Widget lost focus.
Reimplemented from Dragengine.Gui.Widget.
References Dragengine.Gui.Container.addWidget(), new(), pDropDown, pSpacer, Dragengine.Gui.Container.setLayout(), Dragengine.Gui.Widget.setMinimumSize(), and Dragengine.Gui.Widget.setProtectMinimumSize().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onFocusReceived | ( | FocusEvent | event | ) |
Widget received focus.
Reimplemented from Dragengine.Gui.Widget.
References Dragengine.Gui.Container.addWidget(), pDropDown, and Dragengine.Gui.Widget.setDesignerSelector().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onGamepadButtonPressed | ( | GamepadEvent | event | ) |
Gamepad button has been pressed.
Default behaviour sends event to all gamepad listeners or propagates event to parent if allowed.
Reimplemented from Dragengine.Gui.Widget.
References Dragengine.Gui.Widget.addFocusListener(), Dragengine.Gui.Container.addWidget(), contentChanged(), dropDown(), droppedDown(), elementsAdded(), elementsRemoved(), getButtonDropDownWidget(), Dragengine.Gui.Widget.getDesignerSelector(), Dragengine.Gui.Widget.getDesktop(), getDropDownRequiresSelectFromEditor(), getEditor(), getExplicitDropDown(), getModel(), getNumberDisplayLines(), Dragengine.Gui.Widget.getPosition(), getSelectedElement(), getSelectFromEditorOnDropDown(), Dragengine.Gui.Widget.getVisible(), Dragengine.Gui.Container.getWidget(), Dragengine.Gui.Widget.getY(), grabFocus(), onArrowDown(), onArrowUp(), onButtonPress(), onDesignerSelectorChanged(), onFocusLost(), onFocusReceived(), onGamepadButtonPressed(), onGuiThemeChanged(), onKeyPress(), onMouseWheel(), onPageDown(), onPageUp(), onResize(), Dragengine.Gui.Container.onStateChanged(), pDropDown, pDropDownRequiresSelFromEditor, pEditor, pExplicitDropDown, pListBox, pPanelSelectedElement, pSelectedElement, pSelectedElementDesignerSelector, pSelFromEditorOnDropDown, pSpacer, pWidgetButtonDropDown, pWidgetButtonDropDownContainer, Dragengine.Gui.Widget.removeFocusListener(), Dragengine.Gui.Container.removeWidget(), requestReleaseMouse(), rollUp(), Dragengine.Gui.Widget.safeDispose(), Dragengine.Gui.Widget.sendEventToListeners(), Dragengine.Gui.Widget.setDesignerSelector(), setDropDownButtonWidget(), setDropDownRequiresSelectFromEditor(), setEditor(), setElementRenderer(), setExplicitDropDown(), Dragengine.Gui.Widget.setMinimumSize(), setNumberDisplayLines(), setSelectedElement(), setSelectedFromEditorValue(), setSelectFromEditorOnDropDown(), Dragengine.Gui.Widget.setVisible(), startEditing(), toggleDropDown(), updateDefaultElementSize(), and updateSelectedWidget().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onGuiThemeChanged | ( | ) |
Gui theme changed.
Called if setGuiTheme is used or parent changed.
Reimplemented from Dragengine.Gui.Container.
References new().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onKeyPress | ( | KeyEvent | event | ) |
Key pressed.
References new(), pDropDown, pListBox, and Dragengine.Gui.Widget.setDesignerSelector().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onMouseWheel | ( | MouseEvent | event | ) |
Mouse wheeled.
References Dragengine.Gui.Widget.addMouseListener(), pListBox, Dragengine.Gui.Widget.setBorder(), and setNumberDisplayLines().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onPageDown | ( | ) |
Page down pressed.
References getElementRenderer(), pListBox, and setElementRenderer().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onPageUp | ( | ) |
Page up pressed.
References getElementRenderer(), and pListBox.
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.onResize | ( | WidgetEvent | event | ) |
Size changed.
Reimplemented from Dragengine.Gui.Widget.
References new(), pDefaultElementSize, and pEditorFocusLost.
Referenced by onGamepadButtonPressed().
| bool Dragengine.Gui.ComboBox.requestReleaseMouse | ( | Widget | widget | ) |
Request to release mouse capture.
Capture mouse to popup window if visible. Required if editor widget captures mouse.
Reimplemented from Dragengine.Gui.Container.
References Dragengine.Gui.Container.addWidget(), new(), pPanelSelectedElement, Dragengine.Gui.Widget.setDesignerSelector(), and updateSelectedWidget().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.rollUp | ( | ) |
Roll up the list box if dropped down.
Referenced by Dragengine.Gui.ComboBox.ComboPopup.new(), onGamepadButtonPressed(), Dragengine.Gui.ComboBox.ComboPopup.sendEvent(), and setEditor().
| void Dragengine.Gui.ComboBox.selectionChanged | ( | ListModel | listModel | ) |
Selection in the list box changed.
Implements Dragengine.Gui.ListModelListener.
References pEditor, and pEditorValueChanged.
| void Dragengine.Gui.ComboBox.setDropDownButtonWidget | ( | Widget | widget | ) |
Set drop down button widget or null if not set.
For use by button designers.
References pSelFromEditorOnDropDown, and Dragengine.Gui.Widget.setCanFocusDirectional().
Referenced by onGamepadButtonPressed().
|
protected |
Set select from editor value is required during next drop down.
References pDefaultElementSize, pDropDownRequiresSelFromEditor, pEditorFocusLost, pEditorValueChanged, pExplicitDropDown, pPreventUpdateEditor, pSelectedElementDesignerSelector, and pSelFromEditorOnDropDown.
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.setEditor | ( | ComboBoxEditor | editor | ) |
Set combo box editor if editable or null if not editable.
References Dragengine.Gui.Widget.desktopWarpMouseFocusHere(), Dragengine.Gui.Widget.isCapturingDirectional(), Dragengine.Gui.Container.onStateChanged(), and rollUp().
Referenced by elementsAdded(), onDesignerSelectorChanged(), and onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.setElementRenderer | ( | ListElementRenderer | renderer | ) |
Set list element renderer.
Referenced by onGamepadButtonPressed(), and onPageDown().
| void Dragengine.Gui.ComboBox.setExplicitDropDown | ( | bool | explicitDropDown | ) |
Drop down only if clicking arrow or pressing directional keys.
If true clicking on widget or receiving focus does not drop down. By default false.
References Dragengine.Gui.Widget.getDesktop().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.setModel | ( | ListModel | model | ) |
Set list model.
Referenced by onArrowDown(), and onArrowUp().
| void Dragengine.Gui.ComboBox.setNumberDisplayLines | ( | int | lines | ) |
Set number of lines to display in the drop down list box.
References Dragengine.Gui.Widget.isPointInside().
Referenced by onGamepadButtonPressed(), and onMouseWheel().
| void Dragengine.Gui.ComboBox.setSelectedElement | ( | int | index | ) |
Set index of the selected item or -1 if none is selected.
References Dragengine.Gui.Widget.hasParent().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.setSelectedFromEditorValue | ( | ) |
Set selection from editor value.
References pPanelSelectedElement, pSelectedElement, and pSpacer.
Referenced by Dragengine.Gui.ComboBox.RollUpMouseListener.new(), and onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.setSelectFromEditorOnDropDown | ( | bool | selectedFromEditorOnDropDown | ) |
Set selected from editor value on drop down.
If true delays sets selected from editor value until drop down. If false sets selected from editor immediately. This can be slow down UI if the list has many elements.
Default value is true.
References pDropDown, and pListBox.
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.startEditing | ( | ) |
Start editing if an editor is set.
References Dragengine.Gui.Widget.getDesktopPosition(), and Dragengine.Gui.Widget.sendEvent().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.toggleDropDown | ( | ) |
Toggle between dropped down and rolled up state.
References Dragengine.Gui.Widget.getPosition().
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.updateDefaultElementSize | ( | ) |
Update default element size.
References dispose(), and pListBox.
Referenced by onGamepadButtonPressed().
| void Dragengine.Gui.ComboBox.updateSelectedVisibility | ( | ) |
Update visibility of editor and selected element renderer.
References pWidgetButtonDropDown, and pWidgetButtonDropDownContainer.
| void Dragengine.Gui.ComboBox.updateSelectedWidget | ( | ) |
Update selected widget.
References pEditorFocusLost, and pEditorValueChanged.
Referenced by Dragengine.Gui.ComboBox.RollUpMouseListener.onButtonPress(), onGamepadButtonPressed(), and requestReleaseMouse().
| Point Dragengine.Gui.ComboBox.pDefaultElementSize |
Referenced by onResize(), and setDropDownRequiresSelectFromEditor().
| ComboPopup Dragengine.Gui.ComboBox.pDropDown |
| bool Dragengine.Gui.ComboBox.pDropDownRequiresSelFromEditor |
Referenced by onGamepadButtonPressed(), and setDropDownRequiresSelectFromEditor().
| ComboBoxEditor Dragengine.Gui.ComboBox.pEditor |
| EditorFocusLost Dragengine.Gui.ComboBox.pEditorFocusLost |
Referenced by contentChanged(), onResize(), setDropDownRequiresSelectFromEditor(), and updateSelectedWidget().
| EditorValueChanged Dragengine.Gui.ComboBox.pEditorValueChanged |
Referenced by onButtonPress(), selectionChanged(), setDropDownRequiresSelectFromEditor(), and updateSelectedWidget().
| bool Dragengine.Gui.ComboBox.pExplicitDropDown |
Referenced by onGamepadButtonPressed(), and setDropDownRequiresSelectFromEditor().
| ListBox Dragengine.Gui.ComboBox.pListBox |
| Panel Dragengine.Gui.ComboBox.pPanelSelectedElement |
| bool Dragengine.Gui.ComboBox.pPreventUpdateEditor |
Referenced by setDropDownRequiresSelectFromEditor().
| Widget Dragengine.Gui.ComboBox.pSelectedElement |
Referenced by getDropDownRequiresSelectFromEditor(), onGamepadButtonPressed(), and setSelectedFromEditorValue().
| String Dragengine.Gui.ComboBox.pSelectedElementDesignerSelector |
Referenced by onGamepadButtonPressed(), and setDropDownRequiresSelectFromEditor().
| bool Dragengine.Gui.ComboBox.pSelFromEditorOnDropDown |
Referenced by onGamepadButtonPressed(), setDropDownButtonWidget(), and setDropDownRequiresSelectFromEditor().
| Panel Dragengine.Gui.ComboBox.pSpacer |
| Widget Dragengine.Gui.ComboBox.pWidgetButtonDropDown |
Referenced by getDropDownRequiresSelectFromEditor(), onGamepadButtonPressed(), and updateSelectedVisibility().
| Container Dragengine.Gui.ComboBox.pWidgetButtonDropDownContainer |
Referenced by getDropDownRequiresSelectFromEditor(), onGamepadButtonPressed(), and updateSelectedVisibility().