nomlib
Loading...
Searching...
No Matches
nom::WindowEvent Struct Reference

A structure containing information on a window event. More...

#include <Event.hpp>

Public Types

enum  EventType : uint8 {
  NONE = 0 , SHOWN , HIDDEN , EXPOSED ,
  MOVED , RESIZED , SIZE_CHANGED , MINIMIZED ,
  MAXIMIZED , RESTORED , MOUSE_FOCUS_GAINED , MOUSE_FOCUS_LOST ,
  KEYBOARD_FOCUS_GAINED , KEYBOARD_FOCUS_LOST , CLOSE
}
 Window event types. More...

Public Attributes

uint8 event
 The window's event type.
int32 data1
 Event dependent data; typically the X coordinate position or width data of an event.
int32 data2
 Event dependent data; typically the Y coordinate position or height data of an event.
uint32 window_id
 The identifier of the window at the moment of the event.

Detailed Description

A structure containing information on a window event.

Definition at line 77 of file Event.hpp.

Member Enumeration Documentation

◆ EventType

Window event types.

Definition at line 80 of file Event.hpp.

Member Data Documentation

◆ data1

int32 nom::WindowEvent::data1

Event dependent data; typically the X coordinate position or width data of an event.

Definition at line 106 of file Event.hpp.

◆ data2

int32 nom::WindowEvent::data2

Event dependent data; typically the Y coordinate position or height data of an event.

Definition at line 110 of file Event.hpp.

◆ event

uint8 nom::WindowEvent::event

The window's event type.

See also
nom::WindowEvent::EventType

Definition at line 102 of file Event.hpp.

◆ window_id

uint32 nom::WindowEvent::window_id

The identifier of the window at the moment of the event.

Definition at line 113 of file Event.hpp.


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