vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Private Attributes | List of all members
cSoftOsd Class Reference

cSoftOsd - SoftHdDevice plugin software OSD class More...

#include <softhdosd.h>

Collaboration diagram for cSoftOsd:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

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

Detailed Description

cSoftOsd - SoftHdDevice plugin software OSD class

Definition at line 41 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, LOGDEBUG2, m_osdLevel, and m_pDevice.

◆ ~cSoftOsd()

cSoftOsd::~cSoftOsd ( void  )
virtual

cSoftOsd destructor

Shuts down the OSD.

Definition at line 63 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 125 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 78 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 101 of file softhdosd.cpp.

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

Member Data Documentation

◆ m_dirty

bool cSoftOsd::m_dirty
private

flag to force redrawing everything

Definition at line 53 of file softhdosd.h.

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

◆ m_osdLevel

int cSoftOsd::m_osdLevel
private

current osd level

Definition at line 54 of file softhdosd.h.

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

◆ m_pDevice

cSoftHdDevice* cSoftOsd::m_pDevice
private

pointer to the cSoftHdDevice object

Definition at line 52 of file softhdosd.h.

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


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