Louvre  v1.2.1-2
C++ library for Wayland compositors
List of all members | Public Member Functions | Static Public Member Functions
LObject Class Reference

#include <LObject.h>

Base class for Louvre objects. More...

Detailed Description

Base class for Louvre objects.

Public Member Functions

 LObject ()=default
 Constructor of the LObject class. More...
 
 ~LObject ()
 Destructor of the LObject class. More...
 
std::shared_ptr< const bool > isAlive () const
 Object's liveness status. More...
 

Static Public Member Functions

static LCompositorcompositor ()
 Quick access to the global compositor instance. More...
 
static LSeatseat ()
 Quick access to the global seat instance. More...
 
static LCursorcursor ()
 Quick access to the global cursor instance. More...
 

Constructor & Destructor Documentation

◆ LObject()

LObject ( )
inlinedefault

Constructor of the LObject class.

◆ ~LObject()

~LObject ( )
inline

Destructor of the LObject class.

Member Function Documentation

◆ compositor()

static LCompositor* compositor ( )
inlinestatic

Quick access to the global compositor instance.

◆ seat()

static LSeat* seat ( )
inlinestatic

Quick access to the global seat instance.

◆ cursor()

static LCursor* cursor ( )
inlinestatic

Quick access to the global cursor instance.

◆ isAlive()

std::shared_ptr<const bool> isAlive ( ) const
inline

Object's liveness status.

This method returns a shared pointer to a constant boolean, allowing external entities to monitor the liveness status of the object. The boolean's value is set to false when the object is destroyed.

Returns
A shared pointer to a constant boolean representing the liveness status.