Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
Classes
ui_screen.H File Reference
#include "ui_base.H"
Include dependency graph for ui_screen.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CWidget
 Base class for all widgets. More...
 
class  CCanvas
 Canvas widget. More...
 
class  CScreen
 Screen object. More...
 

Macros

General definitions ...
#define UI_BUTTONS_HEIGHT   64
 Height of the button bar.
 
#define UI_BUTTONS_SPACE   8
 Standard spacing between buttons.
 
#define UI_BUTTONS_RECT   Rect (0, UI_RES_Y - UI_BUTTONS_HEIGHT, UI_RES_X, UI_BUTTONS_HEIGHT)
 Button area on the bottom of the display.
 
#define UI_BUTTONS_BACKWIDTH   (UI_BUTTONS_HEIGHT + UI_BUTTONS_HEIGHT/2)
 Standard width of the "back" button,.
 
#define UI_USER_RECT   Rect (0, 0, UI_RES_X, UI_RES_Y - UI_BUTTONS_HEIGHT - UI_BUTTONS_SPACE)
 Rectangle describing the screen space usable for applets.
 

Functions

Layout helpers ...
SDL_Rect * LayoutRow (SDL_Rect container, const int *format, int items=-1, int space=UI_BUTTONS_SPACE)
 Layout a row of rectangles. More...
 
SDL_Rect * LayoutRow (SDL_Rect container, int space=UI_BUTTONS_SPACE,...)
 Layout a row of rectangles based on a 0-termintated list of format valus passed as variable arguments.
 
static SDL_Rect * LayoutRowEqually (SDL_Rect container, int items, int space=UI_BUTTONS_SPACE)
 Layout a row of 'items' rectangles with equal width.
 
SDL_Rect * LayoutCol (SDL_Rect container, const int *format, int items=-1, int space=UI_BUTTONS_SPACE)
 Layout a column of rectangles. More...
 
SDL_Rect * LayoutCol (SDL_Rect container, int space=UI_BUTTONS_SPACE,...)
 Layout a column of rectangles based on a 0-termintated list of format valus passed as variable arguments.
 
static SDL_Rect * LayoutColEqually (SDL_Rect container, int items, int space=UI_BUTTONS_SPACE)
 Layout a column of 'items' rectangles with equal width.
 
SDL_Rect * LayoutMatrix (SDL_Rect container, const int *hFormat, const int *vFormat, int hItems=-1, int vItems=-1, int hSpace=UI_BUTTONS_SPACE, int vSpace=UI_BUTTONS_SPACE)
 Layout a matrix of variable-size elements. More...
 
Init/Done ...
static void ScreenInit ()
 
static void ScreenDone ()