SLProject 4.0.000
|
Interface for ui integration in SLSceneView. More...
#include <SLUiInterface.h>
Public Member Functions | |
virtual | ~SLUiInterface () |
virtual void | init (const string &configPath) |
initialization (called by SLSceneView init) More... | |
virtual void | onResize (SLint scrW, SLint scrH) |
inform the ui about scene view size change More... | |
virtual void | onClose () |
shutdown ui More... | |
virtual void | onInitNewFrame (SLScene *s, SLSceneView *sv) |
prepare the ui for a new rendering, e.g. update visual ui representation (called by SLSceneView onPaint) More... | |
virtual void | onPaint (const SLRecti &viewport) |
ui render call (called by SLSceneView draw2DGL) More... | |
virtual void | renderExtraFrame (SLScene *s, SLSceneView *sv, SLint mouseX, SLint mouseY) |
virtual void | onMouseDown (SLMouseButton button, SLint x, SLint y) |
forward user input to ui More... | |
virtual void | onMouseUp (SLMouseButton button, SLint x, SLint y) |
forward user input to ui More... | |
virtual void | onMouseMove (SLint xPos, SLint yPos) |
forward user input to ui More... | |
virtual void | onMouseWheel (SLfloat yoffset) |
forward user input to ui More... | |
virtual void | onKeyPress (SLKey key, SLKey mod) |
forward user input to ui More... | |
virtual void | onKeyRelease (SLKey key, SLKey mod) |
forward user input to ui More... | |
virtual void | onCharInput (SLuint c) |
forward user input to ui More... | |
virtual bool | doNotDispatchKeyboard () |
inform if user keyboard input was consumed by the ui More... | |
virtual bool | doNotDispatchMouse () |
inform if user mouse input was consumed by the ui More... | |
virtual void | drawMouseCursor (bool doDraw) |
Turns on or off the mouse cursor drawing. More... | |
Interface for ui integration in SLSceneView.
(all functions are called by SLSceneView so basically it is a SLSceneViewUiInterface)
|
inlinevirtual |
|
inlinevirtual |
inform if user keyboard input was consumed by the ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
inform if user mouse input was consumed by the ui
(e.g. the ui was hit by a mouse click. In this case the user input would not be forwarded to 3D scene graph)
Reimplemented in SLGLImGui.
|
inlinevirtual |
Turns on or off the mouse cursor drawing.
Reimplemented in SLGLImGui.
|
inlinevirtual |
initialization (called by SLSceneView init)
Reimplemented in SLGLImGui.
|
inlinevirtual |
forward user input to ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
shutdown ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
prepare the ui for a new rendering, e.g. update visual ui representation (called by SLSceneView onPaint)
Reimplemented in SLGLImGui.
forward user input to ui
Reimplemented in SLGLImGui.
forward user input to ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
forward user input to ui
Reimplemented in SLGLImGui.
forward user input to ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
forward user input to ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
forward user input to ui
Reimplemented in SLGLImGui.
|
inlinevirtual |
ui render call (called by SLSceneView draw2DGL)
Reimplemented in SLGLImGui.
inform the ui about scene view size change
Reimplemented in SLGLImGui.
|
inlinevirtual |
Reimplemented in SLGLImGui.