CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIEvent.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
19
20#include "../Core/FxUIRect.h"
21#include "../Core/FxUISize.h"
22#include "../Core/FxUIRegion.h"
23#include "FxUIObject.h"
24
28
30{
31public:
32
36 enum Type {
37 None = 0,
38 FocusIn = 8,
40 Paint = 12,
41 Resize = 14,
42 Show = 17,
43 Hide = 18,
45 };
46
52 explicit CFxUIEvent(Type type);
53 //CFxUIEvent(const CFxUIEvent &other);
54
56 virtual ~CFxUIEvent();
57 //CFxUIEvent &operator=(const CFxUIEvent &other);
58
64 inline Type type() const { return static_cast<Type>(t); }
65
66protected:
68
69 //...
70};
71
76{
77public:
78
81
84
85 //...
86};
87
92{
93public:
94
97
100
101 //...
102};
103
108{
109public:
115 explicit CFxUIPaintEvent(const CFxUIRegion& paintRegion);
116
122 explicit CFxUIPaintEvent(const CFxUIRect &paintRect);
123
126
132 inline const CFxUIRect &rect() const { return m_rect; }
133
139 inline const CFxUIRegion& region() const
140 {
141 return m_region;
142 }
143
144protected:
148
149 //...
150};
151
156{
157public:
166
169
175 inline const CFxUISize &size() const { return s; }
176
182 inline const CFxUISize &oldSize()const { return olds; }
183protected:
185
186 //...
187};
188
248
253{
254public:
259
264
265 //...
266};
#define COMMONUI_API
unsigned short ushort
CFxUIEvent(Type type)
Type type() const
Definition FxUIEvent.h:64
@ Hide
widget is hidden
Definition FxUIEvent.h:43
@ Paint
paint widget
Definition FxUIEvent.h:40
@ FocusIn
keyboard focus received
Definition FxUIEvent.h:38
@ Resize
resize widget
Definition FxUIEvent.h:41
@ Show
widget is shown
Definition FxUIEvent.h:42
@ FocusOut
keyboard focus lost
Definition FxUIEvent.h:39
@ MouseButtonPress
mouse button pressed on widget
Definition FxUIEvent.h:44
@ None
invalid event
Definition FxUIEvent.h:37
virtual ~CFxUIEvent()
ushort t
Definition FxUIEvent.h:67
bool gotFocus() const
Definition FxUIEvent.h:227
FocusReason reason() const
bool lostFocus() const
Definition FxUIEvent.h:234
CFxUIFocusEvent(Type type, FocusReason reason=OtherFocusReason)
@ ActiveWindowFocusReason
Either window active or inactive.
Definition FxUIEvent.h:202
@ MouseFocusReason
A mouse action occurred.
Definition FxUIEvent.h:199
@ TabFocusReason
Tab key is pressed.
Definition FxUIEvent.h:200
@ ShortcutFocusReason
The user typed a label's buddy shortcut.
Definition FxUIEvent.h:204
@ OtherFocusReason
Another reason, usually application-specific.
Definition FxUIEvent.h:206
@ MenuBarFocusReason
The menu bar took focus.
Definition FxUIEvent.h:205
@ PopupFocusReason
The application opened/closed a pop-up that grabbed/released the keyboard focus.
Definition FxUIEvent.h:203
@ BacktabFocusReason
Back Tab key is pressed.
Definition FxUIEvent.h:201
CFxUIMouseEvent(Type type)
CFxUIRegion m_region
Definition FxUIEvent.h:146
CFxUIPaintEvent(const CFxUIRegion &paintRegion)
CFxUIRect m_rect
Definition FxUIEvent.h:145
const CFxUIRect & rect() const
Definition FxUIEvent.h:132
CFxUIPaintEvent(const CFxUIRect &paintRect)
const CFxUIRegion & region() const
Definition FxUIEvent.h:139
CFxUISize olds
Definition FxUIEvent.h:184
CFxUIResizeEvent(const CFxUISize &size, const CFxUISize &oldSize)
const CFxUISize & size() const
Definition FxUIEvent.h:175
const CFxUISize & oldSize() const
Definition FxUIEvent.h:182
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274