Berserk
Public Member Functions | Friends | List of all members
GlfwWindow Class Referencefinal

Glfw window implementation. More...

#include <GlfwWindow.hpp>

Inheritance diagram for GlfwWindow:
Inheritance graph
[legend]
Collaboration diagram for GlfwWindow:
Collaboration graph
[legend]

Public Member Functions

BRK_API GlfwWindow (StringName name, const Size2i &size, String title, bool clientApi)
 
BRK_API ~GlfwWindow () override
 
BRK_API Point2i GetPosition () const override
 
BRK_API Size2i GetSize () const override
 
BRK_API Size2i GetFramebufferSize () const override
 
BRK_API Vec2f GetPixelRatio () const override
 
BRK_API bool IsInFocus () const override
 
BRK_API bool IsClosed () const override
 
BRK_API String GetTitle () const override
 
BRK_API StringName GetName () const override
 
- Public Member Functions inherited from Window
BRK_API ~Window () override=default
 
virtual BRK_API float GetAspectRatio () const
 
- Public Member Functions inherited from RefCnt
virtual ~RefCnt ()
 
bool IsUnique () const
 
std::int32_t GetRefs () const
 
std::int32_t AddRef () const
 
std::int32_t RelRef () const
 

Friends

class GlfwWindowManager
 

Additional Inherited Members

- Protected Member Functions inherited from RefCnt
virtual void Destroy () const
 

Detailed Description

Glfw window implementation.

Constructor & Destructor Documentation

◆ GlfwWindow()

BRK_NS_BEGIN GlfwWindow::GlfwWindow ( StringName  name,
const Size2i size,
String  title,
bool  clientApi 
)

◆ ~GlfwWindow()

GlfwWindow::~GlfwWindow ( )
override

Member Function Documentation

◆ GetFramebufferSize()

Size2i GlfwWindow::GetFramebufferSize ( ) const
overridevirtual
Returns
Window framebuffer size

Implements Window.

◆ GetName()

StringName GlfwWindow::GetName ( ) const
overridevirtual
Returns
Window unique name for look-up

Implements Window.

◆ GetPixelRatio()

Vec2f GlfwWindow::GetPixelRatio ( ) const
overridevirtual
Returns
Ratio of pixels per window size units

Implements Window.

◆ GetPosition()

Point2i GlfwWindow::GetPosition ( ) const
overridevirtual
Returns
Current window position

Implements Window.

◆ GetSize()

Size2i GlfwWindow::GetSize ( ) const
overridevirtual
Returns
Window size

Implements Window.

◆ GetTitle()

String GlfwWindow::GetTitle ( ) const
overridevirtual
Returns
Window title

Implements Window.

◆ IsClosed()

bool GlfwWindow::IsClosed ( ) const
overridevirtual
Returns
True if window is closed

Implements Window.

◆ IsInFocus()

bool GlfwWindow::IsInFocus ( ) const
overridevirtual
Returns
True if window receives focus

Implements Window.

Friends And Related Function Documentation

◆ GlfwWindowManager

friend class GlfwWindowManager
friend

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