CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::Win32Window Class Reference

#include <CeresEngine/Platform/Win32/Win32Window.hpp>

Inheritance diagram for CeresEngine::Win32Window:
CeresEngine::PlatformWindow

Public Member Functions

 Win32Window ()
 
 ~Win32Window () override
 
void activate () final
 
void deactivate () final
 
String getTitle () const final
 
void setTitle (const String &title) final
 
Vector2 getSize () const final
 
void resize (double width, double height) final
 
void close () final
 
bool isFullscreen () const final
 
void setFullscreen (bool fullscreen) final
 
double getScalingFactor () const final
 
- Public Member Functions inherited from CeresEngine::PlatformWindow
 PlatformWindow (const PlatformWindowProperties &properties)
 
virtual ~PlatformWindow ()=default
 
void resize (const Vector2 size)
 Resizes the window.
 
void sendEvent (const AnyInputEvent &event)
 Sends a new event through the window.
 

Private Attributes

UPtr< Pimplm
 The pointer-to-implementation.
 
PlatformWindowProperties mProperties
 

Friends

struct Pimpl
 

Additional Inherited Members

- Public Attributes inherited from CeresEngine::PlatformWindow
const PlatformWindowPropertiesproperties
 Generates a hash for the provided type.
 
Event< void(PlatformWindow &, Vector2)> didResize
 A signal that gets dispatched whenever the window gets resized.
 
Event< void(PlatformWindow &)> didClose
 A signal that gets dispatched whenever the window gets closed.
 
Event< void(const AnyInputEvent &)> onEvent
 An event fired when any input event is received on the window.
 
Event< void(const KeyEvent &)> onKeyDown
 An event fired when a key down event is received.
 
Event< void(const KeyEvent &)> onKeyUp
 An event fired when a key up event is received.
 
Event< void(const MouseEvent &)> onMouseDown
 An event fired when a mouse down event is received.
 
Event< void(const MouseEvent &)> onMouseUp
 An event fired when a mouse up event is received.
 
Event< void(const MouseEvent &)> onMouseMove
 An event fired when a mouse move event is received.
 
Event< void(const MouseEvent &)> onMouseDrag
 An event fired when a mouse drag eent is received.
 
Event< void(const MouseEvent &)> onMouseScroll
 An event fired when a mouse scroll event is received.
 
Event< void(const TextEvent &)> onTextInput
 An event fired when a text input event is received.
 
Event< void(const Rect2 &newRect, const Rect2 &oldRect)> didChangeFrame
 
Event< bool()> windowShouldClose
 

Constructor & Destructor Documentation

◆ Win32Window()

CeresEngine::Win32Window::Win32Window ( )

◆ ~Win32Window()

CeresEngine::Win32Window::~Win32Window ( )
override

Member Function Documentation

◆ activate()

void CeresEngine::Win32Window::activate ( )
finalvirtual

◆ close()

void CeresEngine::Win32Window::close ( )
finalvirtual

◆ deactivate()

void CeresEngine::Win32Window::deactivate ( )
finalvirtual

◆ getScalingFactor()

double CeresEngine::Win32Window::getScalingFactor ( ) const
finalvirtual

◆ getSize()

Vector2 CeresEngine::Win32Window::getSize ( ) const
finalvirtual

◆ getTitle()

String CeresEngine::Win32Window::getTitle ( ) const
finalvirtual

◆ isFullscreen()

bool CeresEngine::Win32Window::isFullscreen ( ) const
finalvirtual

◆ resize()

void CeresEngine::Win32Window::resize ( double  width,
double  height 
)
finalvirtual

◆ setFullscreen()

void CeresEngine::Win32Window::setFullscreen ( bool  fullscreen)
finalvirtual

◆ setTitle()

void CeresEngine::Win32Window::setTitle ( const String title)
finalvirtual

Friends And Related Symbol Documentation

◆ Pimpl

friend struct Pimpl
friend

Member Data Documentation

◆ m

UPtr<Pimpl> CeresEngine::Win32Window::m
private

The pointer-to-implementation.

◆ mProperties

PlatformWindowProperties CeresEngine::Win32Window::mProperties
private


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