|
void | setDefaultFont (castor::FontResPtr font) |
| sets the default font used by controls
|
|
|
C3D_API | ControlsManager (Engine &engine) |
|
C3D_API void | setSize (castor::Size const &value) |
|
C3D_API void | setLayout (LayoutUPtr layout) |
|
castor::Size const & | getSize () const noexcept |
|
|
C3D_API ThemeRPtr | createTheme (castor::String const &name, Scene *scene) |
|
C3D_API ThemeRPtr | getTheme (castor::String const &name) const |
|
auto & | getThemes () const |
|
C3D_API ButtonStyleRPtr | getButtonStyle (castor::String const &name) const override |
|
C3D_API ComboBoxStyleRPtr | getComboBoxStyle (castor::String const &name) const override |
|
C3D_API EditStyleRPtr | getEditStyle (castor::String const &name) const override |
|
C3D_API ExpandablePanelStyleRPtr | getExpandablePanelStyle (castor::String const &name) const override |
|
C3D_API FrameStyleRPtr | getFrameStyle (castor::String const &name) const override |
|
C3D_API ListBoxStyleRPtr | getListBoxStyle (castor::String const &name) const override |
|
C3D_API PanelStyleRPtr | getPanelStyle (castor::String const &name) const override |
|
C3D_API ProgressStyleRPtr | getProgressStyle (castor::String const &name) const override |
|
C3D_API ScrollBarStyleRPtr | getScrollBarStyle (castor::String const &name) const override |
|
C3D_API SliderStyleRPtr | getSliderStyle (castor::String const &name) const override |
|
C3D_API StaticStyleRPtr | getStaticStyle (castor::String const &name) const override |
|
| UserInputListener (UserInputListener const &)=delete |
|
| UserInputListener (UserInputListener &&) noexcept=delete |
|
UserInputListener & | operator= (UserInputListener const &)=delete |
|
UserInputListener & | operator= (UserInputListener &&) noexcept=delete |
|
C3D_API | UserInputListener (Engine &engine, castor::String const &name) |
| Constructor.
|
|
virtual C3D_API | ~UserInputListener () noexcept=default |
| Destructor.
|
|
C3D_API bool | initialise () |
| Initialises the listener.
|
|
C3D_API void | cleanup () |
| Cleans up the listener.
|
|
C3D_API void | processEvents () |
| Processes all queued events.
|
|
castor::Position const & | getMousePosition () const |
|
EventHandlerRPtr | getActiveControl () const |
|
EventHandlerRPtr | getFocusedControl () const |
|
FrameListener & | getFrameListener () const |
|
C3D_API void | registerMouseMoveAction (castor::String const &handler, OnMouseMoveActionFunction function) |
| Registers a function to call when a mouse move event is raised by the given handler.
|
|
C3D_API void | registerClickAction (castor::String const &handler, OnClickActionFunction function) |
| Registers a function to call when a mouse click event is raised by the given handler.
|
|
C3D_API void | registerSelectAction (castor::String const &handler, OnSelectActionFunction function) |
| Registers a function to call when a select event is raised by the given handler.
|
|
C3D_API void | registerTextAction (castor::String const &handler, OnTextActionFunction function) |
| Registers a function to call when a text event is raised by the given handler.
|
|
C3D_API void | registerExpandAction (castor::String const &handler, OnExpandActionFunction function) |
| Registers a function to call when an expand event is raised by the given handler.
|
|
C3D_API void | registerCursorAction (OnCursorActionFunction function) |
| Registers a function to call when a mouse cursor event is raised by the given handler.
|
|
C3D_API void | registerClipboardTextAction (OnClipboardTextActionFunction function) |
| Registers a function to call when a clipboard event is raised by the given handler.
|
|
C3D_API void | unregisterMouseMoveAction (castor::String const &handler) |
| Unregisters ths function to call when a mouse move event is raised by the given handler.
|
|
C3D_API void | unregisterClickAction (castor::String const &handler) |
| Unregisters ths function to call when a mouse click event is raised by the given handler.
|
|
C3D_API void | unregisterSelectAction (castor::String const &handler) |
| Unregisters ths function to call when a select event is raised by the given handler.
|
|
C3D_API void | unregisterTextAction (castor::String const &handler) |
| Unregisters ths function to call when a text event is raised by the given handler.
|
|
C3D_API void | unregisterExpandAction (castor::String const &handler) |
| Unregisters ths function to call when an expand event is raised by the given handler.
|
|
C3D_API void | unregisterCursorAction () |
| Unregisters the function to call when mouse cursor event is raised by the given handler.
|
|
C3D_API void | unregisterClipboardTextAction () |
| Unregisters the function to call when a clipboard event is raised by the given handler.
|
|
C3D_API void | onMouseMoveAction (castor::String const &handler) const |
| Event raised by the handler when the mouse is moved over it.
|
|
C3D_API void | onClickAction (castor::String const &handler) const |
| Event raised by the handler when it is clicked, if it supports clicking.
|
|
C3D_API void | onSelectAction (castor::String const &handler, int index) const |
| Event raised by the handler when one of its sub elements is selected.
|
|
C3D_API void | onTextAction (castor::String const &handler, castor::U32String const &text) const |
| Event raised by the handler when its caption has changed.
|
|
C3D_API void | onExpandAction (castor::String const &handler, bool expand) const |
| Event raised by the handler when its expansion has changed.
|
|
C3D_API void | onCursorAction (MouseCursor cursor) const |
| Event raised when mouse cursor has changed.
|
|
C3D_API castor::U32String | onClipboardTextAction (bool set, castor::U32String text) const |
| Event raised interaction with the clipboard is needed.
|
|
C3D_API void | enableHandler (castor::String const &handler) |
| Enables handler.
|
|
C3D_API void | disableHandler (castor::String const &handler) |
| Disables handler.
|
|
C3D_API bool | fireMouseMove (castor::Position const &position, bool ctrl, bool alt, bool shift) |
| Fires a mouse move event.
|
|
C3D_API bool | fireMouseButtonPushed (MouseButton button, bool ctrl, bool alt, bool shift) |
| Fires a mouse pushed event.
|
|
C3D_API bool | fireMouseButtonReleased (MouseButton button, bool ctrl, bool alt, bool shift) |
| Fires a mouse released event.
|
|
C3D_API bool | fireMouseWheel (castor::Position const &offsets, bool ctrl, bool alt, bool shift) |
| Fires a mouse wheel event.
|
|
C3D_API bool | fireKeydown (KeyboardKey key, bool ctrl, bool alt, bool shift) |
| Fires a keyboard key down event.
|
|
C3D_API bool | fireKeyUp (KeyboardKey key, bool ctrl, bool alt, bool shift) |
| Fires a keyboard key up event.
|
|
C3D_API bool | fireChar (KeyboardKey key, castor::String const &c) |
| Fires a printable key event.
|
|
Engine * | getOwner () const |
|
virtual C3D_API | ~StylesHolder () noexcept=default |
|
| StylesHolder (castor::String name, Engine &engine) |
|
castor::FontResPtr | getDefaultFont () const |
| Retrieves the default font used by controls.
|
|
void | setDefaultFont (castor::FontResPtr font) |
| sets the default font used by controls
|
|
C3D_API ButtonStyleRPtr | createButtonStyle (castor::String name, Scene *scene) |
|
C3D_API ComboBoxStyleRPtr | createComboBoxStyle (castor::String name, Scene *scene) |
|
C3D_API EditStyleRPtr | createEditStyle (castor::String name, Scene *scene) |
|
C3D_API ExpandablePanelStyleRPtr | createExpandablePanelStyle (castor::String name, Scene *scene) |
|
C3D_API FrameStyleRPtr | createFrameStyle (castor::String name, Scene *scene) |
|
C3D_API ListBoxStyleRPtr | createListBoxStyle (castor::String name, Scene *scene) |
|
C3D_API PanelStyleRPtr | createPanelStyle (castor::String name, Scene *scene) |
|
C3D_API ProgressStyleRPtr | createProgressStyle (castor::String name, Scene *scene) |
|
C3D_API ScrollBarStyleRPtr | createScrollBarStyle (castor::String name, Scene *scene) |
|
C3D_API SliderStyleRPtr | createSliderStyle (castor::String name, Scene *scene) |
|
C3D_API StaticStyleRPtr | createStaticStyle (castor::String name, Scene *scene) |
|
template<typename StyleT > |
StyleT * | getStyle (castor::String const &name) const |
|
auto & | getButtonStyles () const noexcept |
|
auto & | getComboBoxStyles () const noexcept |
|
auto & | getEditStyles () const noexcept |
|
auto & | getExpandablePanelStyles () const noexcept |
|
auto & | getFrameStyles () const noexcept |
|
auto & | getListBoxStyles () const noexcept |
|
auto & | getPanelStyles () const noexcept |
|
auto & | getProgressStyles () const noexcept |
|
auto & | getScrollBarStyles () const noexcept |
|
auto & | getSliderStyles () const noexcept |
|
auto & | getStaticStyles () const noexcept |
|
bool | isEmpty () const noexcept |
|