Guiliani  Version 2.6 revision 7293 (documentation build 12)
DirectFbInterface.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#ifndef CDIRECTFBINTERFACE_H
10#define CDIRECTFBINTERFACE_H
11#include <directfb.h>
12#include "GfxWrapDirectFb.h"
13#include "GUITrace.h"
18{
19 public:
23 static IDirectFB* GetDirectFb();
25 static void ReleaseDirectFb();
29 static void SetActiveSurface(IDirectFBSurface* pkSurface);
33 static void SetScreen(IDirectFBSurface* pkSurface);
37 static IDirectFBSurface* GetActiveSurface();
41 static IDirectFBSurface* GetScreen();
46 static DFBSurfacePixelFormat GetPixelFormatFromBpp(CGfxWrapDirectFb::BppFormat_t eBpp);
47 protected:
48 private:
49
51 static IDirectFB* s_pkDirectFb;
53 static IDirectFBSurface* s_pkActiveSurface;
55 static IDirectFBSurface* s_pkScreen;
58 {
59
60 }
62 virtual ~CDirectFbInterface()
63 {
64
65 }
66};
67
68#endif // CDIRECTFBINTERFACE_H
Definition: DirectFbInterface.h:18
static void ReleaseDirectFb()
Releases (frees) the interface.
static void SetScreen(IDirectFBSurface *pkSurface)
static DFBSurfacePixelFormat GetPixelFormatFromBpp(CGfxWrapDirectFb::BppFormat_t eBpp)
static void SetActiveSurface(IDirectFBSurface *pkSurface)
static IDirectFBSurface * GetScreen()
static IDirectFBSurface * GetActiveSurface()
static IDirectFB * GetDirectFb()
BppFormat_t
Bit per pixel formats.
Definition: GfxWrapDirectFb.h:41