EHS
|
#include <Window_W32.h>
Public Member Functions | |
~Window () override | |
Window () | |
Window (const Window &win) | |
Window & | operator= (const Window &win) |
bool | Poll () override |
void | Create_32 (const Str_32 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
Creates the native window. | |
void | Create_16 (const Str_16 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
Creates the native window. | |
void | Create_8 (const Str_8 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
Creates the native window. | |
void | Use (HWND windowHdl) |
Uses an already existing window to render an overlay. | |
void | Close () override |
Closes the window. | |
void | Show () override |
Shows the window. | |
void | Hide () override |
Hides the window. | |
void | SetTitle_32 (const Str_32 &title) override |
Str_32 | GetTitle_32 () const override |
void | SetTitle_16 (const Str_16 &title) override |
Str_16 | GetTitle_16 () const override |
void | SetTitle_8 (const Str_8 &title) override |
Str_8 | GetTitle_8 () const override |
void | SetIcon (const Str_8 &filePath) |
HWND | GetHdl () const |
HINSTANCE | GetInst () const |
void | ToggleEnabled (bool toggle) |
bool | IsEnabled () |
void | SetPos (const Vec2_s32 &newPos) override |
Vec2_s32 | GetPos () const override |
virtual void | OnResized (const Vec2< UInt_32 > &newSize) |
void | SetScale (const Vec2_u32 &newScale) override |
Vec2_u32 | GetScale () const override |
void | ShowCursor (bool toggle) override |
void | ConstrainCursor (bool toggle) override |
Serializer< UInt_64 > | GetClipboard () override |
void | SetClipboard (Serializer< UInt_64 > data) override |
void | SetCursorImg (CursorImg img) override |
~Window () override | |
Window () | |
Window (Window &&win) noexcept | |
Window (const Window &win) | |
Window & | operator= (Window &&win) noexcept |
Window & | operator= (const Window &win) |
void | Create_32 (const Str_32 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | Create_16 (const Str_16 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | Create_8 (const Str_8 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | OnCreated () override |
void | Close () override |
void | Show () override |
void | Hide () override |
bool | Poll () override |
void | ShowCursor (bool toggle) override |
void | ConstrainCursor (const bool constrain) override |
void | SetTitle_32 (const Str_32 &newTitle) override |
Str_32 | GetTitle_32 () const override |
void | SetTitle_16 (const Str_16 &newTitle) override |
Str_16 | GetTitle_16 () const override |
void | SetTitle_8 (const Str_8 &newTitle) override |
Str_8 | GetTitle_8 () const override |
void | SetPos (const Vec2_s32 &newPos) override |
Vec2_s32 | GetPos () const override |
void | SetScale (const Vec2_u32 &newScale) override |
Vec2_u32 | GetScale () const override |
Serializer< UInt_64 > | GetClipboard () override |
void | SetClipboard (Serializer< UInt_64 > data) override |
void | SetCursorImg (const CursorImg img) override |
~Window () override | |
Window () | |
Window (Window &&win) noexcept | |
Window (const Window &win) | |
Window & | operator= (Window &&win) noexcept |
Window & | operator= (const Window &win) |
void | Create_32 (const Str_32 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | Create_16 (const Str_16 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | Create_8 (const Str_8 &title, const Vec2_s32 &pos, Vec2_u32 scale) override |
void | Close () override |
void | Show () override |
void | Hide () override |
bool | Poll () override |
void | ShowCursor (bool toggle) override |
void | ConstrainCursor (bool constrain) override |
void | SetTitle_32 (const Str_32 &newTitle) override |
Str_32 | GetTitle_32 () const override |
void | SetTitle_16 (const Str_16 &newTitle) override |
Str_16 | GetTitle_16 () const override |
void | SetTitle_8 (const Str_8 &newTitle) override |
Str_8 | GetTitle_8 () const override |
void | SetPos (const Vec2_s32 &newPos) override |
Vec2_s32 | GetPos () const override |
void | SetScale (const Vec2_u32 &newScale) override |
Vec2_u32 | GetScale () const override |
Serializer< UInt_64 > | GetClipboard () override |
void | SetClipboard (Serializer< UInt_64 > data) override |
void | SetCursorImg (CursorImg img) override |
xcb_connection_t * | GetServer () |
![]() | |
virtual | ~BaseWindow ()=default |
BaseWindow () | |
BaseWindow (const BaseWindow &win) | |
BaseWindow & | operator= (const BaseWindow &win) |
bool | IsCreated () const |
bool | HasFocus () const |
Vec2_s32 | GetCursorPos () const |
bool | IsCursorVisible () const |
bool | IsCursorConstrained () const |
WindowState | GetState () const |
const InputHandler * | GetInputHandler () const |
Static Public Member Functions | |
static HWND | GetAvailableHdl () |
Protected Member Functions | |
void | SendMsg (UINT msg, WPARAM wParam, LPARAM lParam) |
Static Protected Member Functions | |
static void | SurfaceConfigEvent (void *data, xdg_surface *xdg_surface, UInt_32 serial) |
static void | ShellPing (void *data, xdg_wm_base *shell, UInt_32 serial) |
static void | RegistryHandler (void *data, wl_registry *registry, UInt_32 id, const char *interface, UInt_32 version) |
static void | RegistryRemoved (void *data, wl_registry *registry, UInt_32 id) |
static void | ResizeEvent (void *data, xdg_toplevel *xdg_toplevel, Int_32 width, Int_32 height, wl_array *states) |
static void | CloseEvent (void *data, xdg_toplevel *xdg_toplevel) |
static void | SeatCapabilitiesEvent (void *data, wl_seat *seat, UInt_32 capabilities) |
static void | PointerMotionEvent (void *data, wl_pointer *pointer, UInt_32 time, wl_fixed_t sx, wl_fixed_t sy) |
Protected Attributes | |
wl_display * | display |
wl_registry * | registry |
wl_compositor * | compositor |
wl_surface * | wlSurface |
xdg_wm_base * | xdgShell |
xdg_surface * | xdgSurface |
xdg_toplevel * | xdgToplevel |
zxdg_decoration_manager_v1 * | decManager |
zxdg_toplevel_decoration_v1 * | dec |
wl_seat * | seat |
wl_pointer * | pointer |
Vec2_u32 | scale |
xcb_connection_t * | server |
xcb_screen_t * | screen |
xcb_window_t | hdl |
xcb_atom_t | masks [2] |
UInt_8 | extOpCode |
Vector< xcb_generic_event_t * > | events |
Serializer< UInt_64 > | clipboard |
![]() | |
bool | created |
bool | focused |
Vec2_s32 | cursorPos |
bool | cursorVisible |
bool | cursorConstrained |
WindowState | state |
InputHandler | ih |
Friends | |
class | Input |
|
override |
ehs::Window::Window | ( | ) |
ehs::Window::Window | ( | const Window & | win | ) |
|
override |
ehs::Window::Window | ( | ) |
|
noexcept |
ehs::Window::Window | ( | const Window & | win | ) |
|
override |
ehs::Window::Window | ( | ) |
|
noexcept |
ehs::Window::Window | ( | const Window & | win | ) |
|
overridevirtual |
Closes the window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
staticprotected |
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Creates the native window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Creates the native window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Creates the native window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
static |
Retrieves the first window handle that has been created using this library.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
HWND ehs::Window::GetHdl | ( | ) | const |
Gets the windows native handle for the operating system or other native tasks.
HINSTANCE ehs::Window::GetInst | ( | ) | const |
|
overridevirtual |
Gets the windows current position on the desktop.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
xcb_connection_t * ehs::Window::GetServer | ( | ) |
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Hides the window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
bool ehs::Window::IsEnabled | ( | ) |
Checks whether the window updates and renders.
|
overridevirtual |
Implements ehs::BaseWindow.
|
staticprotected |
|
overridevirtual |
Reimplemented from ehs::BaseWindow.
|
overridevirtual |
Reimplemented from ehs::BaseWindow.
|
overridevirtual |
Reimplemented from ehs::BaseWindow.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
void ehs::Window::SetIcon | ( | const Str_8 & | filePath | ) |
|
overridevirtual |
Sets the windows position on the desktop.
[in] | x | The x axis in pixels. |
[in] | y | The y axis in pixels. |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Sets the windows scale which includes the border.
[in] | w | The width in pixels. |
[in] | h | The height in pixels. |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
staticprotected |
|
overridevirtual |
Shows the window.
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
Implements ehs::BaseWindow.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
staticprotected |
void ehs::Window::ToggleEnabled | ( | bool | toggle | ) |
Toggles whether the window updates and renders.
[in] | toggle | The new status. |
void ehs::Window::Use | ( | HWND | windowHdl | ) |
Uses an already existing window to render an overlay.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |