SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::WindowResizeOverEvent Class Referenceabstract

#include <WindowEvent.h>

Inheritance diagram for Spices::WindowResizeOverEvent:
Spices::Event

Public Types

using EventCallbackFn = std::function<void(Event&)>
 Helper type of Function pointer.
 

Public Member Functions

 WindowResizeOverEvent (uint32_t width, uint32_t height)
 Constructor Function.
 
virtual ~WindowResizeOverEvent () override=default
 Destructor Function.
 
const uint32_t & GetWidth () const
 Get New Windows Width.
 
const uint32_t & GetHeight () const
 Get New Windows Height.
 
virtual std::string ToString () const override
 Serialize this Event Class to string.
 
virtual EventType GetEventType () const =0
 Event Information Function, must be implemented by EVENT_CLASS_TYPE and EVENT_CLASS_CATEGORY.
 
virtual const char * GetName () const =0
 
virtual int GetCategoryFlags () const =0
 
bool IsInCategory (EventCategory category) const
 Judgement if a given category is contained by this event class.
 

Static Public Member Functions

static EventCallbackFn GetEventCallbackFn ()
 Get Global Root Event Function Pointer.
 
static void SetEventCallbackFn (const EventCallbackFn &callback)
 Set Global Root Event Function Pointer.
 

Public Attributes

bool Handled = false
 True if this event is handled.
 

Private Attributes

uint32_t m_Width
 Specific this Class Type with WindowResizeOver.
 
uint32_t m_Height
 New Windows Height.
 

Detailed Description

@breif This Class is inherited from Event Class. Called when window resized over. This Event register by VkSwapchain.

Definition at line 117 of file WindowEvent.h.


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