Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cDvbOsd Class Reference

#include <dvbosd.h>

Inheritance diagram for cDvbOsd:

Inheritance graph
[legend]
Collaboration diagram for cDvbOsd:

Collaboration graph
[legend]

Detailed Description

Implementation of the DVB On Screen Display.

dvbosd.h: Implementation of the DVB On Screen Display

See the main source file 'vdr.c' for copyright information and how to reach the author.

Id
dvbosd.h 1.16 2002/11/01 10:05:47 kls Exp

Definition at line 18 of file dvbosd.h.

Public Methods

 cDvbOsd (int x, int y)
virtual ~cDvbOsd ()

Static Public Methods

void SetDvbDevice (const cDvbDevice *DvbDevice)

Protected Methods

virtual bool OpenWindow (cWindow *Window)
virtual void CommitWindow (cWindow *Window)
virtual void ShowWindow (cWindow *Window)
virtual void HideWindow (cWindow *Window, bool Hide)
virtual void MoveWindow (cWindow *Window, int x, int y)
virtual void CloseWindow (cWindow *Window)

Private Methods

bool SetWindow (cWindow *Window)
void Cmd (OSD_Command cmd, int color=0, int x0=0, int y0=0, int x1=0, int y1=0, const void *data=NULL)

Private Attributes

int osdDev

Static Private Attributes

const cDvbDevicedvbDevice = NULL


Constructor & Destructor Documentation

cDvbOsd::cDvbOsd int    x,
int    y
 

Definition at line 18 of file dvbosd.c.

References dvbDevice, esyslog, osdDev, and cDvbDevice::OsdDeviceHandle().

cDvbOsd::~cDvbOsd   [virtual]
 

Definition at line 26 of file dvbosd.c.

References CloseWindow(), cOsdBase::GetWindowNr(), and cOsdBase::NumWindows().


Member Function Documentation

void cDvbOsd::CloseWindow cWindow   Window [protected, virtual]
 

Close the window and release any OSD hardware resources allocated for it.

Implements cOsdBase.

Definition at line 121 of file dvbosd.c.

References Cmd(), and SetWindow().

Referenced by ~cDvbOsd().

void cDvbOsd::Cmd OSD_Command    cmd,
int    color = 0,
int    x0 = 0,
int    y0 = 0,
int    x1 = 0,
int    y1 = 0,
const void *    data = NULL
[private]
 

Definition at line 52 of file dvbosd.c.

References osdDev.

Referenced by CloseWindow(), CommitWindow(), HideWindow(), MoveWindow(), OpenWindow(), SetWindow(), and ShowWindow().

void cDvbOsd::CommitWindow cWindow   Window [protected, virtual]
 

Write any modified data and color definitions to the OSD hardware. Use the window's Dirty() function to find out which area of data actually needs to be transferred. If the window has not yet been explicitly shown through a call to ShowWindow(), no visible activity shall take place.

Implements cOsdBase.

Definition at line 87 of file dvbosd.c.

References Cmd(), cWindow::Data(), cBitmap::Dirty(), eDvbColor, cPalette::NewColors(), SetWindow(), and cBitmap::Width().

void cDvbOsd::HideWindow cWindow   Window,
bool    Hide
[protected, virtual]
 

Temporarily hide the window (if 'Hide' is 'true') or make a previously hidden window visible again (if 'Hide' is 'false').

Implements cOsdBase.

Definition at line 109 of file dvbosd.c.

References Cmd(), and SetWindow().

void cDvbOsd::MoveWindow cWindow   Window,
int    x,
int    y
[protected, virtual]
 

Move the window to a new location.

Implements cOsdBase.

Definition at line 115 of file dvbosd.c.

References Cmd(), SetWindow(), cOsdBase::X0(), and cOsdBase::Y0().

bool cDvbOsd::OpenWindow cWindow   Window [protected, virtual]
 

Opens the window on the OSD hardware, without actually showing it (the initial state shall be "hidden").

Implements cOsdBase.

Definition at line 78 of file dvbosd.c.

References cWindow::Bpp(), Cmd(), cBitmap::Height(), SetWindow(), cBitmap::Width(), cWindow::X0(), cOsdBase::X0(), cWindow::Y0(), and cOsdBase::Y0().

void cDvbOsd::SetDvbDevice const cDvbDevice   DvbDevice [static]
 

Definition at line 32 of file dvbosd.c.

References dvbDevice.

Referenced by cDvbDevice::MakePrimaryDevice().

bool cDvbOsd::SetWindow cWindow   Window [private]
 

Definition at line 37 of file dvbosd.c.

References Cmd(), esyslog, cWindow::Handle(), and MAXNUMWINDOWS.

Referenced by CloseWindow(), CommitWindow(), HideWindow(), MoveWindow(), OpenWindow(), and ShowWindow().

void cDvbOsd::ShowWindow cWindow   Window [protected, virtual]
 

Make the window actually visible on the OSD hardware.

Implements cOsdBase.

Definition at line 103 of file dvbosd.c.

References Cmd(), SetWindow(), cWindow::X0(), cOsdBase::X0(), cWindow::Y0(), and cOsdBase::Y0().


Field Documentation

const cDvbDevice * cDvbOsd::dvbDevice = NULL [static, private]
 

Definition at line 16 of file dvbosd.c.

Referenced by cDvbOsd(), and SetDvbDevice().

int cDvbOsd::osdDev [private]
 

Definition at line 21 of file dvbosd.h.

Referenced by cDvbOsd(), and Cmd().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:10 2003 for VDR by doxygen1.3-rc2