Guiliani  Version 2.6 revision 7293 (documentation build 12)
DAVEScreen.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef __DAVESCREEN_H__
11#define __DAVESCREEN_H__
12
13#include "GUIRect.h"
14
15#include "eC_Types.h"
16
17#include "dave_base.h"
18#include "dave_driver.h"
19
23{
24public:
37 d1_device* pkD1Handle,
38 d2_device* pkD2Handle,
39 const eC_Int& iD1Mode,
40 const eC_Int& iD2Mode,
41 const eC_UInt& uiWidth,
42 const eC_UInt& uiHeight,
43 const eC_UInt& uiBytesPerPixel,
44 const eC_UInt& uiBufferCount,
45 void** ppBuffers);
47 virtual ~CDAVEScreen();
48
52 void Clear();
53
56 void Flip();
57
63 void Merge(
64 const CGUIRect& kInvalidatedRect,
65 const eC_Bool& bCopyContents = true);
66
71
76
80 eC_UInt GetBufferCount() const;
81
85 eC_UInt GetWidth() const;
86
90 eC_UInt GetHeight() const;
91
94 eC_UInt GetPitch() const;
95
99 eC_UInt GetBitsPerPixel() const;
100
104 eC_Int GetD1Mode() const;
105
109 eC_Int GetD2Mode() const;
110
111private:
112 // no copy constructor
113 CDAVEScreen(const CDAVEScreen&);
114
115private:
116 d1_device* m_pkD1Handle;
117 d2_device* m_pkD2Handle;
118 eC_Int m_iD1Mode;
119 eC_Int m_iD2Mode;
120 eC_UInt m_uiWidth;
121 eC_UInt m_uiHeight;
122 eC_UInt m_uiBytesPerPixel;
123 eC_UInt m_uiBufferCount;
124 void** m_ppBuffers;
125
126 eC_UInt m_uiRenderBuffer;
127 eC_UInt m_uiDisplayBuffer;
128 bool m_bAllocated;
129};
130
131#endif
Definition: DAVEScreen.h:23
CDAVEScreen(d1_device *pkD1Handle, d2_device *pkD2Handle, const eC_Int &iD1Mode, const eC_Int &iD2Mode, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBytesPerPixel, const eC_UInt &uiBufferCount, void **ppBuffers)
void Clear()
eC_UInt GetBufferCount() const
void * GetDisplayBuffer()
eC_UInt GetBitsPerPixel() const
void * GetRenderBuffer()
eC_Int GetD2Mode() const
eC_UInt GetPitch() const
eC_Int GetD1Mode() const
void Merge(const CGUIRect &kInvalidatedRect, const eC_Bool &bCopyContents=true)
virtual ~CDAVEScreen()
Destructor.
eC_UInt GetHeight() const
eC_UInt GetWidth() const
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63