vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cSoftOsd Class Reference

cSoftOsd - SoftHdDevice plugin software OSD class More...

#include <softhdosd.h>

Public Member Functions

 cSoftOsd (int, int, uint, cSoftHdDevice *)
 cSoftOsd constructor
 
virtual ~cSoftOsd (void)
 cSoftOsd destructor
 
virtual eOsdError SetAreas (const tArea *, int)
 Set the sub-areas to the given areas.
 
virtual void Flush (void)
 Actually commit all data to the OSD hardware.
 
virtual void SetActive (bool)
 Sets this OSD to be the active one.
 

Private Attributes

cSoftHdDevicem_pDevice
 pointer to the cSoftHdDevice object
 
bool m_dirty = false
 flag to force redrawing everything
 
int m_osdLevel
 current osd level
 

Detailed Description

cSoftOsd - SoftHdDevice plugin software OSD class

Definition at line 43 of file softhdosd.h.

Constructor & Destructor Documentation

◆ cSoftOsd()

cSoftOsd::cSoftOsd ( int  left,
int  top,
uint  level,
cSoftHdDevice device 
)

cSoftOsd constructor

Initializes the OSD with the given coordinates.

Parameters
leftx-coordinate of osd on display
topy-coordinate of osd on display
levellevel of the osd (smallest is shown)
devicepointer to cSoftHdDevice object

Definition at line 48 of file softhdosd.cpp.

References L_OSD, and LOGDEBUG2.

◆ ~cSoftOsd()

cSoftOsd::~cSoftOsd ( void  )
virtual

cSoftOsd destructor

Shuts down the OSD.

Definition at line 61 of file softhdosd.cpp.

References L_OSD, LOGDEBUG2, m_osdLevel, and SetActive().

Member Function Documentation

◆ Flush()

void cSoftOsd::Flush ( void  )
virtual

Actually commit all data to the OSD hardware.

Definition at line 122 of file softhdosd.cpp.

References cSoftHdDevice::GetOsdSize(), L_OSD, LOGDEBUG2, m_dirty, m_osdLevel, m_pDevice, and cSoftHdDevice::OsdDrawARGB().

Referenced by SetActive().

◆ SetActive()

void cSoftOsd::SetActive ( bool  on)
virtual

Sets this OSD to be the active one.

Parameters
ontrue on, false off
Note
only needed as workaround for text2skin plugin with undrawn areas.

Definition at line 76 of file softhdosd.cpp.

References Flush(), L_OSD, LOGDEBUG2, m_dirty, m_osdLevel, m_pDevice, and cSoftHdDevice::OsdClose().

Referenced by ~cSoftOsd().

◆ SetAreas()

eOsdError cSoftOsd::SetAreas ( const tArea *  areas,
int  n 
)
virtual

Set the sub-areas to the given areas.

Definition at line 98 of file softhdosd.cpp.

References L_OSD, LOGDEBUG2, m_dirty, m_pDevice, and cSoftHdDevice::OsdClose().

Member Data Documentation

◆ m_dirty

bool cSoftOsd::m_dirty = false
private

flag to force redrawing everything

Definition at line 55 of file softhdosd.h.

Referenced by Flush(), SetActive(), and SetAreas().

◆ m_osdLevel

int cSoftOsd::m_osdLevel
private

current osd level

Definition at line 56 of file softhdosd.h.

Referenced by Flush(), SetActive(), and ~cSoftOsd().

◆ m_pDevice

cSoftHdDevice* cSoftOsd::m_pDevice
private

pointer to the cSoftHdDevice object

Definition at line 54 of file softhdosd.h.

Referenced by Flush(), SetActive(), and SetAreas().


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