mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
52
src/driver/fb_window.h
Normal file
52
src/driver/fb_window.h
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef __fb_window_h__
|
||||
#define __fb_window_h__
|
||||
/*
|
||||
* $Header: /cvs/tuxbox/apps/tuxbox/neutrino/src/driver/fb_window.h,v 1.3 2004/03/13 12:45:41 thegoodguy Exp $
|
||||
*
|
||||
* abstract fb_window class - d-box2 linux project
|
||||
*
|
||||
* (C) 2003 by thegoodguy <thegoodguy@berlios.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
class CFBWindow
|
||||
{
|
||||
public:
|
||||
#ifdef FB_USE_PALETTE
|
||||
typedef unsigned short color_t;
|
||||
#else
|
||||
typedef unsigned int color_t;
|
||||
#endif
|
||||
typedef void * font_t;
|
||||
typedef void * private_data_t;
|
||||
|
||||
private:
|
||||
private_data_t private_data;
|
||||
|
||||
public:
|
||||
int x, y; /* upper left corner */
|
||||
int dx, dy; /* dimension */
|
||||
|
||||
CFBWindow(const int _x, const int _y, const int _dx, const int _dy);
|
||||
~CFBWindow();
|
||||
|
||||
void paintBoxRel(const int _x, const int _y, const int _dx, const int _dy, const color_t _col, int radius = 0, int type = 0);
|
||||
bool paintIcon(const char * const _filename, const int _x, const int _y, const color_t _offset = 1);
|
||||
void RenderString(const font_t _font, const int _x, const int _y, const int _width, const char * const _text, const color_t _color, const int _boxheight = 0, const bool _utf8_encoded = false);
|
||||
};
|
||||
|
||||
#endif /* __fb_window_h__ */
|
Reference in New Issue
Block a user