X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=engines%2Fopenbox%2Fobengine.h;h=b4e469834d495e8d23f4c711a82826e62b7b727f;hb=d58799bc25333d6ace95325072c39072aa0e757c;hp=839b8b8abf888569c27366bff756c03bb91f7ec0;hpb=883a38eeb21e4c166e31f25a9af32b739d85d409;p=chaz%2Fopenbox diff --git a/engines/openbox/obengine.h b/engines/openbox/obengine.h index 839b8b8a..b4e46983 100644 --- a/engines/openbox/obengine.h +++ b/engines/openbox/obengine.h @@ -7,61 +7,76 @@ #include "../../render/font.h" #include "../../render/mask.h" -#define LABEL_HEIGHT (s_winfont_height + 2) -#define TITLE_HEIGHT (LABEL_HEIGHT + s_bevel * 2) +#define LABEL_HEIGHT (ob_s_winfont_height + 2) +#define TITLE_HEIGHT (LABEL_HEIGHT + ob_s_bevel * 2) #define HANDLE_Y(f) (f->innersize.top + f->frame.client->area.height + \ f->cbwidth) #define BUTTON_SIZE (LABEL_HEIGHT - 2) #define GRIP_WIDTH (BUTTON_SIZE * 2) -extern int s_bevel; -extern int s_handle_height; -extern int s_bwidth; -extern int s_cbwidth; +extern int ob_s_bevel; +extern int ob_s_handle_height; +extern int ob_s_bwidth; +extern int ob_s_cbwidth; -extern color_rgb *s_b_color; -extern color_rgb *s_cb_focused_color; -extern color_rgb *s_cb_unfocused_color; -extern color_rgb *s_title_focused_color; -extern color_rgb *s_title_unfocused_color; -extern color_rgb *s_titlebut_focused_color; -extern color_rgb *s_titlebut_unfocused_color; +extern color_rgb *ob_s_b_color; +extern color_rgb *ob_s_cb_focused_color; +extern color_rgb *ob_s_cb_unfocused_color; +extern color_rgb *ob_s_title_focused_color; +extern color_rgb *ob_s_title_unfocused_color; +extern color_rgb *ob_s_titlebut_focused_color; +extern color_rgb *ob_s_titlebut_unfocused_color; -extern int s_winfont_height; -extern int s_winfont_shadow; -extern int s_winfont_shadow_offset; -extern ObFont *s_winfont; +extern int ob_s_winfont_height; +extern int ob_s_winfont_shadow; +extern int ob_s_winfont_shadow_offset; +extern int ob_s_winfont_shadow_tint; +extern ObFont *ob_s_winfont; -extern pixmap_mask *s_max_mask; -extern pixmap_mask *s_icon_mask; -extern pixmap_mask *s_desk_mask; -extern pixmap_mask *s_close_mask; +extern pixmap_mask *ob_s_max_set_mask; +extern pixmap_mask *ob_s_max_unset_mask; +extern pixmap_mask *ob_s_iconify_mask; +extern pixmap_mask *ob_s_desk_set_mask; +extern pixmap_mask *ob_s_desk_unset_mask; +extern pixmap_mask *ob_s_shade_set_mask; +extern pixmap_mask *ob_s_shade_unset_mask; +extern pixmap_mask *ob_s_close_mask; -extern Appearance *a_focused_unpressed_max; -extern Appearance *a_focused_pressed_max; -extern Appearance *a_unfocused_unpressed_max; -extern Appearance *a_unfocused_pressed_max; -extern Appearance *a_focused_unpressed_close; -extern Appearance *a_focused_pressed_close; -extern Appearance *a_unfocused_unpressed_close; -extern Appearance *a_unfocused_pressed_close; -extern Appearance *a_focused_unpressed_desk; -extern Appearance *a_focused_pressed_desk; -extern Appearance *a_unfocused_unpressed_desk; -extern Appearance *a_unfocused_pressed_desk; -extern Appearance *a_focused_unpressed_iconify; -extern Appearance *a_focused_pressed_iconify; -extern Appearance *a_unfocused_unpressed_iconify; -extern Appearance *a_unfocused_pressed_iconify; -extern Appearance *a_focused_grip; -extern Appearance *a_unfocused_grip; -extern Appearance *a_focused_title; -extern Appearance *a_unfocused_title; -extern Appearance *a_focused_label; -extern Appearance *a_unfocused_label; -extern Appearance *a_icon; -extern Appearance *a_focused_handle; -extern Appearance *a_unfocused_handle; +extern Appearance *ob_a_focused_unpressed_max; +extern Appearance *ob_a_focused_pressed_max; +extern Appearance *ob_a_focused_pressed_set_max; +extern Appearance *ob_a_unfocused_unpressed_max; +extern Appearance *ob_a_unfocused_pressed_max; +extern Appearance *ob_a_unfocused_pressed_set_max; +extern Appearance *ob_a_focused_unpressed_close; +extern Appearance *ob_a_focused_pressed_close; +extern Appearance *ob_a_unfocused_unpressed_close; +extern Appearance *ob_a_unfocused_pressed_close; +extern Appearance *ob_a_focused_unpressed_desk; +extern Appearance *ob_a_focused_pressed_desk; +extern Appearance *ob_a_focused_pressed_set_desk; +extern Appearance *ob_a_unfocused_unpressed_desk; +extern Appearance *ob_a_unfocused_pressed_desk; +extern Appearance *ob_a_unfocused_pressed_set_desk; +extern Appearance *ob_a_focused_unpressed_shade; +extern Appearance *ob_a_focused_pressed_shade; +extern Appearance *ob_a_focused_pressed_set_shade; +extern Appearance *ob_a_unfocused_unpressed_shade; +extern Appearance *ob_a_unfocused_pressed_shade; +extern Appearance *ob_a_unfocused_pressed_set_shade; +extern Appearance *ob_a_focused_unpressed_iconify; +extern Appearance *ob_a_focused_pressed_iconify; +extern Appearance *ob_a_unfocused_unpressed_iconify; +extern Appearance *ob_a_unfocused_pressed_iconify; +extern Appearance *ob_a_focused_grip; +extern Appearance *ob_a_unfocused_grip; +extern Appearance *ob_a_focused_title; +extern Appearance *ob_a_unfocused_title; +extern Appearance *ob_a_focused_label; +extern Appearance *ob_a_unfocused_label; +extern Appearance *ob_a_icon; +extern Appearance *ob_a_focused_handle; +extern Appearance *ob_a_unfocused_handle; typedef struct ObFrame { Frame frame; @@ -71,6 +86,7 @@ typedef struct ObFrame { Window max; Window close; Window desk; + Window shade; Window icon; Window iconify; Window handle; @@ -95,6 +111,7 @@ typedef struct ObFrame { int label_x; /* x-position of the window title */ int iconify_x; /* x-position of the window iconify button */ int desk_x; /* x-position of the window all-desktops button */ + int shade_x; /* x-position of the window shade button */ int max_x; /* x-position of the window maximize button */ int close_x; /* x-position of the window close button */ int bwidth; /* border width */ @@ -103,6 +120,7 @@ typedef struct ObFrame { gboolean max_press; gboolean close_press; gboolean desk_press; + gboolean shade_press; gboolean iconify_press; } ObFrame;