Browse Source

Platform: group Screen members the same way as in Applications.

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
10c8bd7516
  1. 12
      src/Magnum/Platform/Screen.h

12
src/Magnum/Platform/Screen.h

@ -172,6 +172,8 @@ template<class Application> class BasicScreen: private Containers::LinkedListIte
} }
protected: protected:
/** @{ @name Screen handling */
/** @brief Request redraw */ /** @brief Request redraw */
virtual void redraw() { application()->redraw(); } virtual void redraw() { application()->redraw(); }
@ -224,6 +226,10 @@ template<class Application> class BasicScreen: private Containers::LinkedListIte
*/ */
virtual void drawEvent() = 0; virtual void drawEvent() = 0;
/*@}*/
/** @{ @name Keyboard handling */
/** /**
* @brief Key press event * @brief Key press event
* *
@ -242,6 +248,10 @@ template<class Application> class BasicScreen: private Containers::LinkedListIte
*/ */
virtual void keyReleaseEvent(KeyEvent& event); virtual void keyReleaseEvent(KeyEvent& event);
/*@}*/
/** @{ @name Mouse handling */
/** /**
* @brief Mouse press event * @brief Mouse press event
* *
@ -269,6 +279,8 @@ template<class Application> class BasicScreen: private Containers::LinkedListIte
*/ */
virtual void mouseMoveEvent(MouseMoveEvent& event); virtual void mouseMoveEvent(MouseMoveEvent& event);
/*@}*/
private: private:
#ifndef DOXYGEN_GENERATING_OUTPUT /* https://bugzilla.gnome.org/show_bug.cgi?id=776986 */ #ifndef DOXYGEN_GENERATING_OUTPUT /* https://bugzilla.gnome.org/show_bug.cgi?id=776986 */
friend Containers::LinkedListItem<BasicScreen<Application>, BasicScreenedApplication<Application>>; friend Containers::LinkedListItem<BasicScreen<Application>, BasicScreenedApplication<Application>>;

Loading…
Cancel
Save