Guiliani  Version 2.6 revision 7293 (documentation build 12)
GfxEnvFBDevice.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 __GFXENV_FBDEVICE_H__
11#define __GFXENV_FBDEVICE_H__
12
13#include "GUIRect.h"
14#include "GfxEnv.h"
15
16
18
25{
26public:
35 static eC_Bool CreateInstance(
36 const char* pcInterface,
37 const eC_UInt& uiWidth,
38 const eC_UInt& uiHeight,
39 const eC_UInt& uiBufferCount = 1,
40 const eC_Bool& bResizable = false);
41
42protected:
51 const char* pcInterface,
52 const eC_UInt& uiWidth,
53 const eC_UInt& uiHeight,
54 const eC_UInt& uiBufferCount,
55 const eC_Bool& bResizable);
56
60
61protected:
62 virtual eC_Bool IsCreated() const;
63
64 virtual eC_Bool RefreshScreen(const CGUIRect &kInvalidatedArea);
65
66 virtual void** GetFrameBuffers() const;
67
68 virtual void SetCliprect(const CGUIRect &NewClipRect) {}
69
70 virtual void SetWindowCaption(const eC_String& kCaption) {}
71
72 virtual eC_Bool SwapBuffers() { return true; }
73
74 virtual void EndOfRefresh();
75
76private:
77 void CreateScreen(const char* pcInterface);
78
82 CGfxEnvFBDevice(const CGfxEnvFBDevice& kSource);
83
87 CGfxEnvFBDevice& operator=(const CGfxEnvFBDevice& kSource);
88
89private:
90 eC_Int m_iFBDevHandle;
91 eC_UByte* m_pubDrawBuffer;
92 eC_UByte* m_pubScreenBuffer;
93 eC_UInt m_uiScreenSize;
94};
95#endif
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
Implements fbdevice-specific features.
Definition: GfxEnvFBDevice.h:25
virtual void SetCliprect(const CGUIRect &NewClipRect)
Definition: GfxEnvFBDevice.h:68
virtual eC_Bool RefreshScreen(const CGUIRect &kInvalidatedArea)
virtual void SetWindowCaption(const eC_String &kCaption)
Definition: GfxEnvFBDevice.h:70
virtual ~CGfxEnvFBDevice()
virtual void ** GetFrameBuffers() const
virtual eC_Bool IsCreated() const
virtual void EndOfRefresh()
virtual eC_Bool SwapBuffers()
Definition: GfxEnvFBDevice.h:72
static eC_Bool CreateInstance(const char *pcInterface, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, const eC_Bool &bResizable=false)
CGfxEnvFBDevice(const char *pcInterface, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount, const eC_Bool &bResizable)
Definition: GfxEnv.h:53