Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::WindowResizedEvent Class Reference

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

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

Inheritance diagram for kanzi::WindowResizedEvent:
[legend]

Public Member Functions

unsigned int getHeight () const
 Returns the height of the window. More...
 
unsigned int getWidth () const
 Returns the width of the window. More...
 
 WindowResizedEvent (NativeWindowHandle target, unsigned int width, unsigned int height)
 Constructs an event for the 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 window 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 the event as handled. More...
 
virtual ~InputEvent ()
 Destructor. More...
 

Protected Attributes

unsigned int m_height
 The height of the window held by the event. More...
 
unsigned int m_width
 The width of the window held by the event. 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, WindowPlacement,
  WindowClosed, ApplicationPaused, ApplicationSleep, ApplicationWakeup,
  DebugToggleHud, DebugSetHud, UserEvent
}
 InputEvent type enumeration. More...
 

Detailed Description

Specialized window event with InputEvent::WindowResized type.

The event reports the width and the height of the resized window.

Constructor & Destructor Documentation

kanzi::WindowResizedEvent::WindowResizedEvent ( NativeWindowHandle  target,
unsigned int  width,
unsigned int  height 
)
explicit

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

Parameters
targetThe window associated with the event.
widthThe width of the window.
heightThe height of the window.

Member Function Documentation

unsigned int kanzi::WindowResizedEvent::getWidth ( ) const
inline

Returns the width of the window.

unsigned int kanzi::WindowResizedEvent::getHeight ( ) const
inline

Returns the height of the window.

Member Data Documentation

unsigned int kanzi::WindowResizedEvent::m_width
protected

The width of the window held by the event.

unsigned int kanzi::WindowResizedEvent::m_height
protected

The height of the window held by the event.


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