QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::WindowMinimizeEvent Class Referencefinal

Sent when the window is minimized, or restored after being minimized. More...

#include <quasar/events/WindowEvent.h>

Inheritance diagram for Quasar::WindowMinimizeEvent:
Quasar::EventOf< EventType::WindowMinimize, EventCategory::Window > Quasar::Event

Public Member Functions

 WindowMinimizeEvent (bool minimized)
 Creates the event.
bool IsMinimized () const
 Returns true if the window was minimized, false if it was restored.
std::string ToString () const override
 Returns the event with the change, for example "WindowMinimize: minimized".
Public Member Functions inherited from Quasar::EventOf< EventType::WindowMinimize, EventCategory::Window >
EventType GetType () const override
 Returns the type of the event.
EventCategory GetCategories () const override
 Returns all the categories of the event.
Public Member Functions inherited from Quasar::Event
const char * GetName () const
 Returns the name of the type of the event, for example "KeyPressed".
bool IsInCategory (EventCategory category) const
 Returns true if the event belongs to the given category.
bool IsHandled () const
 Returns true if the event was handled.
void SetHandled (bool handled)
 Marks the event as handled, or not handled.

Additional Inherited Members

Static Public Member Functions inherited from Quasar::EventOf< EventType::WindowMinimize, EventCategory::Window >
static constexpr EventType GetStaticType ()
 Returns the type of this event class.
Protected Member Functions inherited from Quasar::Event
 Event ()=default
 Creates an event that is not handled.

Detailed Description

Sent when the window is minimized, or restored after being minimized.

It is sent on Windows and on Linux with X11. On Linux with Wayland, the system never tells an application that its window is minimized, so this event is never sent.

Constructor & Destructor Documentation

◆ WindowMinimizeEvent()

Quasar::WindowMinimizeEvent::WindowMinimizeEvent ( bool minimized)
inlineexplicit

Creates the event.

Parameters
minimizedTrue if the window was minimized, false if it was restored.

Member Function Documentation

◆ ToString()

std::string Quasar::WindowMinimizeEvent::ToString ( ) const
inlineoverridevirtual

Returns the event with the change, for example "WindowMinimize: minimized".

Reimplemented from Quasar::Event.


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