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

Loading…
Cancel
Save