Rose
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
rose::Application Class Reference
Inheritance diagram for rose::Application:
Inheritance graph
[legend]
Collaboration diagram for rose::Application:
Collaboration graph
[legend]

Public Member Functions

 Application (int argc, char **argv)
 
virtual void initialize (const std::string &title, Size defaultSize)
 
virtual void windowStateChange (EventSemantics::WindowEventType type)
 
virtual void windowSizeChange (EventSemantics::WindowEventType type, Size size)
 
virtual void windowPositionChange (EventSemantics::WindowEventType type, Position< int > &position)
 
virtual bool keyboardEventCallback (const SDL_KeyboardEvent &keyboardEvent)
 
virtual bool mouseMotionEventCallback (const SDL_MouseMotionEvent &mouseMotionEvent)
 
virtual bool mouseButtonEventCallback (const SDL_MouseButtonEvent &mouseButtonEvent)
 
virtual bool mouseWheelEventCallback (const SDL_MouseWheelEvent &mouseWheelEvent)
 
virtual bool fingerTouchEventCallback (const SDL_TouchFingerEvent &fingerTouchEvent)
 
virtual bool textInputEventCallback (const SDL_TextInputEvent &textInputEvent)
 
gm::Contextcontext ()
 
std::shared_ptr< Screen > & screen ()
 
void layout ()
 
std::shared_ptr< WidgetpointerWidget (const Position< int > &position)
 
Padding windowBorders () const noexcept
 
gm::SdlWindowgetSdlWindow ()
 
void capturePointerWidget (std::shared_ptr< Widget > widget)
 
void captureScrollWheelWidget (std::shared_ptr< Widget > widget)
 
void registerKeyboardShortcut (SDL_Keycode keycode, const std::shared_ptr< Widget > &widget, uint32_t shortcutCode)
 
void redrawBackground ()
 
bool keyboardFound () const noexcept
 
virtual void run ()
 

Protected Attributes

std::shared_ptr< ScreenmScreen {}
 
EventSemantics mEventSemantics
 
gm::GraphicsModel mGraphicsModel {}
 
EventSemantics::WindowEventType mAppState {EventSemantics::Restored}
 
InputParser mInputParser
 
std::shared_ptr< WidgetmPointerWidget {}
 
std::shared_ptr< WidgetmClickFocusWidget {}
 
std::shared_ptr< WidgetmDragFocusWidget {}
 
std::shared_ptr< WidgetmScrollFocusWidget {}
 
std::shared_ptr< WidgetmKeyFocusWidget {}
 
std::map< SDL_Keycode, std::pair< uint32_t, std::weak_ptr< Widget > > > mKeyboardShortcuts {}
 
bool mMouseButtonPressed {false}
 
uint mMouseButtonId {0}
 
Position< int > mMousePosition {}
 
bool mKeyboardFound
 

Static Protected Attributes

static constexpr std::string_view UsbDeviceByPath {"/dev/input/by-path/"}
 
static constexpr std::string_view KeyboardPathRegEx {".*-kbd"}
 

The documentation for this class was generated from the following files: