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

#include <CeresEngine/Platform/Linux/LinuxWindow.hpp>

Inheritance diagram for CeresEngine::LinuxWindow:
CeresEngine::PlatformWindow

Public Member Functions

 LinuxWindow ()
 
 ~LinuxWindow () 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
 
- Public Member Functions inherited from CeresEngine::PlatformWindow
 PlatformWindow (const PlatformWindowProperties &properties)
 
virtual ~PlatformWindow ()=default
 
void resize (const Vector2 size)
 Resizes the window.
 
virtual double getScalingFactor () const =0
 Gets the DPI scaling factor for this 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

◆ LinuxWindow()

CeresEngine::LinuxWindow::LinuxWindow ( )

◆ ~LinuxWindow()

CeresEngine::LinuxWindow::~LinuxWindow ( )
override

Member Function Documentation

◆ activate()

void CeresEngine::LinuxWindow::activate ( )
finalvirtual

◆ close()

void CeresEngine::LinuxWindow::close ( )
finalvirtual

◆ deactivate()

void CeresEngine::LinuxWindow::deactivate ( )
finalvirtual

◆ getSize()

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

◆ getTitle()

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

◆ isFullscreen()

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

◆ resize()

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

◆ setFullscreen()

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

◆ setTitle()

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

Friends And Related Symbol Documentation

◆ Pimpl

friend struct Pimpl
friend

Member Data Documentation

◆ m

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

The pointer-to-implementation.

◆ mProperties

PlatformWindowProperties CeresEngine::LinuxWindow::mProperties
private


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