Kanzi Engine API
kanzi::WindowResizeRequestEvent Class Reference

Specialized window event with InputEvent::WindowResizeRequest type. More...

#include <kanzi/core.ui/platform/input/common/events.hpp>

Inheritance diagram for kanzi::WindowResizeRequestEvent:
[legend]

Public Member Functions

size_t getHeight () const
 Returns the requested height of the window. More...
 
size_t getWidth () const
 Returns the requested width of the window. More...
 
 WindowResizeRequestEvent (NativeWindowHandle target, size_t width, size_t height)
 Constructs an event for a given target window with width and height. More...
 
- Public Member Functions inherited from kanzi::WindowEvent
NativeWindowHandle getWindow () const
 Returns the window instance to which the event refers. More...
 
 WindowEvent (Type type, NativeWindowHandle window)
 Constructs a windown event with a given type for a given window. More...
 
- Public Member Functions inherited from kanzi::InputEvent
Type getType () const
 Returns the type of the event. More...
 
 InputEvent (Type type)
 Constructs an event with a given type. More...
 
bool isHandled () const
 Returns true if the event is handled, false if not. More...
 
void markHandled ()
 Marks teh event as handled. More...
 
virtual ~InputEvent ()
 Destructor. More...
 

Protected Attributes

size_t m_height
 Holds the requested height of the window. More...
 
size_t m_width
 Holds the requested width of the window. More...
 
- Protected Attributes inherited from kanzi::WindowEvent
NativeWindowHandle m_window
 The window instance to which the event refers. More...
 

Additional Inherited Members

- Public Types inherited from kanzi::InputEvent
enum  Type {
  Key, Pointer, Touch, WindowResized,
  WindowResizeRequest, WindowFocusLost, WindowFocusGained, WindowHidden,
  WindowResourcesLost, WindowOrientationChanged, WindowRedrawRequest, WindowClosed,
  ApplicationPaused, ApplicationSleep, ApplicationWakeup, DebugToggleHud,
  DebugSetHud, UserEvent
}
 InputEvent type enumeration. More...
 

Detailed Description

Specialized window event with InputEvent::WindowResizeRequest type.

The event is requesting the resizing of a winow.

Constructor & Destructor Documentation

kanzi::WindowResizeRequestEvent::WindowResizeRequestEvent ( NativeWindowHandle  target,
size_t  width,
size_t  height 
)
explicit

Constructs an event for a given target window with width and height.

Member Function Documentation

size_t kanzi::WindowResizeRequestEvent::getWidth ( ) const
inline

Returns the requested width of the window.

size_t kanzi::WindowResizeRequestEvent::getHeight ( ) const
inline

Returns the requested height of the window.

Member Data Documentation

size_t kanzi::WindowResizeRequestEvent::m_width
protected

Holds the requested width of the window.

size_t kanzi::WindowResizeRequestEvent::m_height
protected

Holds the requested height of the window.


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