mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponents: move components.cpp to cc_base.cpp, move types to own header
Origin commit data
------------------
Branch: ni/coolstream
Commit: 10f429ee0f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-23 (Sat, 23 Feb 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Based up Neutrino-GUI - Tuxbox-Project
|
||||
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
||||
|
||||
Classes for generic for GUI-related components.
|
||||
Classes for generic GUI-related components.
|
||||
Copyright (C) 2012, 2013, Thilo Graf 'dbt'
|
||||
|
||||
License: GPL
|
||||
@@ -26,92 +26,12 @@
|
||||
#ifndef __COMPONENTS__
|
||||
#define __COMPONENTS__
|
||||
|
||||
#include "cc_types.h"
|
||||
#include <driver/framebuffer.h>
|
||||
#include <gui/color.h>
|
||||
#include <gui/customcolor.h>
|
||||
#include <gui/widget/textbox.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
//required typedefs
|
||||
typedef struct comp_fbdata_t
|
||||
{
|
||||
int fbdata_type;
|
||||
int x;
|
||||
int y;
|
||||
int dx;
|
||||
int dy;
|
||||
fb_pixel_t color;
|
||||
int r;
|
||||
int frame_thickness;
|
||||
fb_pixel_t* pixbuf;
|
||||
void * data;
|
||||
} comp_fbdata_struct_t;
|
||||
|
||||
//fb data object types
|
||||
typedef enum
|
||||
{
|
||||
CC_FBDATA_TYPE_BGSCREEN,
|
||||
CC_FBDATA_TYPE_SHADOW,
|
||||
CC_FBDATA_TYPE_BOX,
|
||||
CC_FBDATA_TYPE_FRAME,
|
||||
CC_FBDATA_TYPE_LINE,
|
||||
CC_FBDATA_TYPE_BACKGROUND,
|
||||
|
||||
CC_FBDATA_TYPES
|
||||
}FBDATA_TYPES;
|
||||
|
||||
typedef struct comp_screen_data_t
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
int dx;
|
||||
int dy;
|
||||
fb_pixel_t* pixbuf;
|
||||
} comp_screen_data_struct_t;
|
||||
|
||||
//align types
|
||||
enum
|
||||
{
|
||||
CC_ALIGN_RIGHT = 0,
|
||||
CC_ALIGN_LEFT = 1,
|
||||
CC_ALIGN_TOP = 2,
|
||||
CC_ALIGN_BOTTOM = 4,
|
||||
CC_ALIGN_HOR_CENTER = 8,
|
||||
CC_ALIGN_VER_CENTER = 16
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
CC_ITEMBOX_ICON,
|
||||
CC_ITEMBOX_PICTURE,
|
||||
CC_ITEMBOX_TEXT,
|
||||
CC_ITEMBOX_CLOCK
|
||||
};
|
||||
|
||||
typedef struct comp_element_data_t
|
||||
{
|
||||
int type;
|
||||
int align;
|
||||
std::string element;
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
void* handler1;
|
||||
void* handler2;
|
||||
}comp_element_data_struct_t;
|
||||
|
||||
|
||||
#define CC_WIDTH_MIN 16
|
||||
#define CC_HEIGHT_MIN 16
|
||||
#define CC_SHADOW_ON true
|
||||
#define CC_SHADOW_OFF false
|
||||
#define CC_SAVE_SCREEN_YES true
|
||||
#define CC_SAVE_SCREEN_NO false
|
||||
|
||||
#define CC_NO_INDEX -1
|
||||
|
||||
class CComponents
|
||||
{
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user