gwenhywfar 5.14.1
theme.cpp File Reference
#include "theme.h"
Include dependency graph for theme.cpp:

Go to the source code of this file.

Data Structures

struct  ColorTheme

Macros

#define ICON_SPACING   4
#define MENUBUTTONARROW_HEIGHT   5
#define MENUBUTTONARROW_WIDTH   13

Functions

static void drawFrame (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h)
static void drawHighlightFrame (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h)
static void drawRectangle (FXDC &dc, FXColor lower, FXColor upper, FXint x, FXint y, FXint w, FXint h)
static void drawSunkenFrame (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h)
 FXDEFMAP (ThemeButton) ThemeButtonMap[]
 FXDEFMAP (ThemeComboBox) ThemeComboBoxMap[]
 FXDEFMAP (ThemeLabel) ThemeLabelMap[]
 FXDEFMAP (ThemeMenuButton) ThemeMenuButtonMap[]
 FXDEFMAP (ThemeTabItem) ThemeTabItemMap[]
 FXDEFMAP (ThemeTextField) ThemeTextFieldMap[]
 FXIMPLEMENT (ThemeButton, FXButton, ThemeButtonMap, ARRAYNUMBER(ThemeButtonMap))
 FXIMPLEMENT (ThemeComboBox, FXComboBox, ThemeComboBoxMap, ARRAYNUMBER(ThemeComboBoxMap))
 FXIMPLEMENT (ThemeLabel, FXLabel, ThemeLabelMap, ARRAYNUMBER(ThemeLabelMap))
 FXIMPLEMENT (ThemeMenuButton, FXMenuButton, ThemeMenuButtonMap, ARRAYNUMBER(ThemeMenuButtonMap))
 FXIMPLEMENT (ThemeTabItem, FXTabItem, ThemeTabItemMap, ARRAYNUMBER(ThemeTabItemMap))
 FXIMPLEMENT (ThemeTextField, FXTextField, ThemeTextFieldMap, ARRAYNUMBER(ThemeTextFieldMap))
void init_theme (FXApp *app)

Variables

const ColorTheme ColorThemes []

Macro Definition Documentation

◆ ICON_SPACING

#define ICON_SPACING   4

Definition at line 15 of file theme.cpp.

Referenced by ThemeHeaderItem::draw().

◆ MENUBUTTONARROW_HEIGHT

#define MENUBUTTONARROW_HEIGHT   5

Definition at line 487 of file theme.cpp.

Referenced by ThemeMenuButton::getDefaultWidth(), and ThemeMenuButton::onPaint().

◆ MENUBUTTONARROW_WIDTH

#define MENUBUTTONARROW_WIDTH   13

Definition at line 486 of file theme.cpp.

Referenced by ThemeMenuButton::getDefaultWidth(), and ThemeMenuButton::onPaint().

Function Documentation

◆ drawFrame()

void drawFrame ( FXDCWindow & dc,
FXint x,
FXint y,
FXint w,
FXint h )
static

Definition at line 228 of file theme.cpp.

Referenced by FOX16_HtmlLabel::onPaint(), ThemeComboBox::onPaint(), and ThemeLabel::onPaint().

Here is the caller graph for this function:

◆ drawHighlightFrame()

void drawHighlightFrame ( FXDCWindow & dc,
FXint x,
FXint y,
FXint w,
FXint h )
static

Definition at line 262 of file theme.cpp.

Referenced by ThemeLabel::onPaint().

Here is the caller graph for this function:

◆ drawRectangle()

void drawRectangle ( FXDC & dc,
FXColor lower,
FXColor upper,
FXint x,
FXint y,
FXint w,
FXint h )
static

Definition at line 19 of file theme.cpp.

Referenced by ThemeHeaderItem::draw(), ThemeButton::onPaint(), and ThemeMenuButton::onPaint().

Here is the caller graph for this function:

◆ drawSunkenFrame()

void drawSunkenFrame ( FXDCWindow & dc,
FXint x,
FXint y,
FXint w,
FXint h )
static

Definition at line 242 of file theme.cpp.

Referenced by ThemeLabel::onPaint().

Here is the caller graph for this function:

◆ FXDEFMAP() [1/6]

FXDEFMAP ( ThemeButton )

References ThemeButton::onPaint().

Here is the call graph for this function:

◆ FXDEFMAP() [2/6]

FXDEFMAP ( ThemeComboBox )

References ThemeComboBox::onPaint().

Here is the call graph for this function:

◆ FXDEFMAP() [3/6]

FXDEFMAP ( ThemeLabel )

References ThemeLabel::onPaint().

Here is the call graph for this function:

◆ FXDEFMAP() [4/6]

FXDEFMAP ( ThemeMenuButton )

References ThemeMenuButton::onPaint().

Here is the call graph for this function:

◆ FXDEFMAP() [5/6]

FXDEFMAP ( ThemeTabItem )

◆ FXDEFMAP() [6/6]

FXDEFMAP ( ThemeTextField )

References ThemeTextField::onPaint().

Here is the call graph for this function:

◆ FXIMPLEMENT() [1/6]

FXIMPLEMENT ( ThemeButton ,
FXButton ,
ThemeButtonMap ,
ARRAYNUMBER(ThemeButtonMap)  )

◆ FXIMPLEMENT() [2/6]

FXIMPLEMENT ( ThemeComboBox ,
FXComboBox ,
ThemeComboBoxMap ,
ARRAYNUMBER(ThemeComboBoxMap)  )

◆ FXIMPLEMENT() [3/6]

FXIMPLEMENT ( ThemeLabel ,
FXLabel ,
ThemeLabelMap ,
ARRAYNUMBER(ThemeLabelMap)  )

◆ FXIMPLEMENT() [4/6]

FXIMPLEMENT ( ThemeMenuButton ,
FXMenuButton ,
ThemeMenuButtonMap ,
ARRAYNUMBER(ThemeMenuButtonMap)  )

◆ FXIMPLEMENT() [5/6]

FXIMPLEMENT ( ThemeTabItem ,
FXTabItem ,
ThemeTabItemMap ,
ARRAYNUMBER(ThemeTabItemMap)  )

◆ FXIMPLEMENT() [6/6]

FXIMPLEMENT ( ThemeTextField ,
FXTextField ,
ThemeTextFieldMap ,
ARRAYNUMBER(ThemeTextFieldMap)  )

◆ init_theme()

void init_theme ( FXApp * app)

Definition at line 336 of file theme.cpp.

References ColorThemes.

Variable Documentation

◆ ColorThemes

const ColorTheme ColorThemes[]
Initial value:
= {
{"Redmond XP",FXRGB(238,238,230),FXRGB( 0, 0, 0),FXRGB(255,255,255),FXRGB( 0, 0, 0),FXRGB( 74,121,205),FXRGB(255,255,255),FXRGB(255,255,225),FXRGB( 0, 0, 0),FXRGB( 74,121,205),FXRGB(255,255,255)}
}

Definition at line 330 of file theme.cpp.

Referenced by init_theme().