DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Namespaces | Defines | Variables
src/libs/gui_tk/gui_tk.cpp File Reference

Implementation file for gui_tk. More...

#include "config.h"
#include "dosbox.h"
#include <SDL.h>
#include "gui_tk.h"

Go to the source code of this file.

Classes

class  GUI::SDL_Drawable
 Internal class that handles different screen bit depths and layouts the SDL way. More...

Namespaces

namespace  GUI
 This namespace contains all GUI toolkit classes, types and functions.
namespace  GUI::Color
 Collection of all color-related constants and functions.

Defines

#define move(x)   (ptr += ((x)+bit)/8-(((x)+bit)<0), bit = ((x)+bit+(((x)+bit)<0?8:0))%8)

Variables

int GUI::titlebar_y_start = 5
int GUI::titlebar_y_stop = 25
int GUI::titlebox_y_start = 4
int GUI::titlebox_y_height = 20
int GUI::titlebox_sysmenu_width = 20
RGB GUI::Color::Background3D = 0xffc0c0c0
 Background color for 3D effects. May be customized.
RGB GUI::Color::Light3D = 0xfffcfcfc
 Light highlight color for 3D effects. May be customized.
RGB GUI::Color::Shadow3D = 0xff808080
 Dark highlight color (shadow) for 3D effects. May be customized.
RGB GUI::Color::Border = 0xff000000
 Generic border color for highlights or similar. May be customized.
RGB GUI::Color::Text = 0xff000000
 Foreground color for regular content (mainly text). May be customized.
RGB GUI::Color::Background = 0xffc0c0c0
 Background color for inactive areas. May be customized.
RGB GUI::Color::SelectionBackground = 0xff000080
 Background color for selected areas. May be customized.
RGB GUI::Color::SelectionForeground = 0xffffffff
 Foreground color for selected areas. May be customized.
RGB GUI::Color::EditableBackground = 0xffffffff
 Background color for inputs / application area. May be customized.
RGB GUI::Color::Titlebar = 0xffa4c8f0
 Title bar color for windows. May be customized.
RGB GUI::Color::TitlebarText = 0xff000000
 Title bar text color for windows. May be customized.
RGB GUI::Color::TitlebarInactive = 0xffffffff
 Title bar color for windows. May be customized.
RGB GUI::Color::TitlebarInactiveText = 0xff000000
 Title bar text color for windows. May be customized.

Detailed Description

Implementation file for gui_tk.

It contains implementations for all non-inlined class methods.

Also contained is a small test program that demonstrates all features of gui_tk. It is enabled by defining the preprocessor macro TESTING.

Definition in file gui_tk.cpp.