6 /* ---------------------------- included header files ---------------------- */
8 /* ---------------------------- global definitions ------------------------- */
10 #define NPARTS_KEEP_STATE 12
12 /* ---------------------------- global macros ------------------------------ */
14 /* ---------------------------- type definitions --------------------------- */
19 /* the border drawing code relies on the fact that the border bits
20 * occupy the lowest ten bits in this order! */
25 PART_BORDER_NW
= 0x10,
26 PART_BORDER_NE
= 0x20,
27 PART_BORDER_SW
= 0x40,
28 PART_BORDER_SE
= 0x80,
31 PART_X_HANDLES
= 0x400,
32 PART_Y_HANDLES
= 0x800,
33 /* combinations of the above values */
37 PART_TITLEBAR
= 0x300,
51 /* ---------------------------- exported variables (globals) --------------- */
53 /* ---------------------------- interface functions ------------------------ */
55 DecorFace
*border_get_border_style(
56 FvwmWindow
*fw
, Bool has_focus
);
57 int border_is_using_border_style(
58 FvwmWindow
*fw
, Bool has_focus
);
59 int border_context_to_parts(
61 void border_get_part_geometry(
62 FvwmWindow
*fw
, window_parts part
, rectangle
*sidebar_g
,
63 rectangle
*ret_g
, Window
*ret_w
);
64 int get_button_number(int context
);
65 void border_draw_decorations(
66 FvwmWindow
*t
, window_parts draw_parts
, Bool has_focus
, int force
,
67 clear_window_parts clear_parts
, rectangle
*old_g
, rectangle
*new_g
);
68 void border_undraw_decorations(
70 void border_redraw_decorations(
72 unsigned int border_get_transparent_decorations_part(
74 #endif /* _BORDERS_H */