sculpto
Public Member Functions | List of all members
scl::viewport_resize_event Class Reference

#include <vieport_resize_event.h>

Inheritance diagram for scl::viewport_resize_event:
scl::event

Public Member Functions

 viewport_resize_event (int Width, int Height, int ViewportId)
 
u32 GetWidth () const
 
u32 GetHeight () const
 
int GetViewportId () const
 
std::string ToString () const override
 
- Public Member Functions inherited from scl::event
virtual ~event ()=default
 
virtual u32 GetType () const =0
 
virtual const char * GetName () const =0
 
virtual std::string ToString () const
 

Additional Inherited Members

- Public Attributes inherited from scl::event
bool Handled { false }
 

Detailed Description

Application viewports resize event class.

Definition at line 16 of file vieport_resize_event.h.

Constructor & Destructor Documentation

◆ viewport_resize_event()

scl::viewport_resize_event::viewport_resize_event ( int  Width,
int  Height,
int  ViewportId 
)
inline
  • Window resize vent constructor.
Parameters
Width- new width of window.
Height- new height of window.
ViewportId- id of resizeing viewport (zero viewport id is always window viewport).

Definition at line 32 of file vieport_resize_event.h.

32 :
33 Width(Width), Height(Height), ViewportId(ViewportId) {}

Member Function Documentation

◆ GetHeight()

u32 scl::viewport_resize_event::GetHeight ( ) const
inline

New window height getter function.

Definition at line 38 of file vieport_resize_event.h.

38{ return Height; }

◆ GetViewportId()

int scl::viewport_resize_event::GetViewportId ( ) const
inline

Resizing viewport id getter function.

Definition at line 40 of file vieport_resize_event.h.

40{ return ViewportId; }

◆ GetWidth()

u32 scl::viewport_resize_event::GetWidth ( ) const
inline

New window width getter function.

Definition at line 36 of file vieport_resize_event.h.

36{ return Width; }

◆ ToString()

std::string scl::viewport_resize_event::ToString ( ) const
inlineoverridevirtual
  • Convert event to string (for debug).
Parameters
None.
Returns
string representation of event.

Reimplemented from scl::event.

Definition at line 48 of file vieport_resize_event.h.

49 {
50 std::stringstream ss;
51 ss << GetName() << ": " << Width << ", " << Height;
52 return ss.str();
53 }
virtual const char * GetName() const =0

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