1 | /* Gnome panel: a border widget |
---|
2 | * (C) 1999 the Free Software Foundation |
---|
3 | * |
---|
4 | * Authors: Jacob Berkman |
---|
5 | * George Lebl |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef BORDER_WIDGET_H |
---|
9 | #define BORDER_WIDGET_H |
---|
10 | |
---|
11 | #include "basep-widget.h" |
---|
12 | |
---|
13 | BEGIN_GNOME_DECLS |
---|
14 | |
---|
15 | #define TYPE_BORDER_POS (border_pos_get_type ()) |
---|
16 | #define BORDER_POS(o) (GTK_CHECK_CAST ((o), TYPE_BORDER_POS, BorderPos)) |
---|
17 | #define BORDER_POS_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), TYPE_BORDER_POS, BorderPosClass)) |
---|
18 | #define IS_BORDER_POS(o) (GTK_CHECK_TYPE ((o), TYPE_BORDER_POS)) |
---|
19 | #define IS_BORDER_POS_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), TYPE_BORDER_POS)) |
---|
20 | |
---|
21 | #define TYPE_BORDER_WIDGET (TYPE_BASEP_WIDGET) |
---|
22 | #define BORDER_WIDGET(o) (BASEP_WIDGET(o)) |
---|
23 | #define BORDER_WIDGET_CLASS(k) (BASEP_WIDGET_CLASS(o)) |
---|
24 | #define IS_BORDER_WIDGET(o) (IS_BASEP_WIDGET(o) && IS_BORDER_POS( BASEP_WIDGET(o)->pos )) |
---|
25 | /* this is not reliable... */ |
---|
26 | #define IS_BORDER_WIDGET_CLASS(k) (IS_BASEP_WIDGET_CLASS (k)) |
---|
27 | |
---|
28 | typedef BasePWidget BorderWidget; |
---|
29 | typedef BasePWidgetClass BorderWidgetClass; |
---|
30 | |
---|
31 | typedef struct _BorderPos BorderPos; |
---|
32 | typedef struct _BorderPosClass BorderPosClass; |
---|
33 | |
---|
34 | struct _BorderPos { |
---|
35 | BasePPos pos; |
---|
36 | BorderEdge edge; |
---|
37 | }; |
---|
38 | |
---|
39 | struct _BorderPosClass { |
---|
40 | BasePPosClass parent_class; |
---|
41 | |
---|
42 | /* signals */ |
---|
43 | void (*edge_change) (BorderPos *border, |
---|
44 | BorderEdge edge); |
---|
45 | |
---|
46 | /* virtual funcs */ |
---|
47 | #if 0 |
---|
48 | void (*set_initial_pos) (BorderWidget *border); |
---|
49 | |
---|
50 | void (*save_settings) (BorderWidget *border); |
---|
51 | #endif |
---|
52 | }; |
---|
53 | |
---|
54 | GtkType border_pos_get_type (void) G_GNUC_CONST; |
---|
55 | GtkWidget *border_widget_construct (BorderWidget *border, |
---|
56 | int screen, |
---|
57 | BorderEdge edge, |
---|
58 | gboolean packed, |
---|
59 | gboolean reverse_arrows, |
---|
60 | int sz, |
---|
61 | BasePMode mode, |
---|
62 | BasePState state, |
---|
63 | BasePLevel level, |
---|
64 | gboolean avoid_on_maximize, |
---|
65 | gboolean hidebuttons_enabled, |
---|
66 | gboolean hidebutton_pixmaps_enabled, |
---|
67 | PanelBackType back_type, |
---|
68 | char *back_pixmap, |
---|
69 | gboolean fit_pixmap_bg, |
---|
70 | gboolean strech_pixmap_bg, |
---|
71 | gboolean rotate_pixmap_bg, |
---|
72 | GdkColor *back_color); |
---|
73 | |
---|
74 | void border_widget_change_params (BorderWidget *border, |
---|
75 | int screen, |
---|
76 | BorderEdge edge, |
---|
77 | int sz, |
---|
78 | BasePMode mode, |
---|
79 | BasePState state, |
---|
80 | BasePLevel level, |
---|
81 | gboolean avoid_on_maximize, |
---|
82 | gboolean hidebuttons_enabled, |
---|
83 | gboolean hidebutton_pixmaps_enabled, |
---|
84 | PanelBackType back_type, |
---|
85 | char *pixmap_name, |
---|
86 | gboolean fit_pixmap_bg, |
---|
87 | gboolean strech_pixmap_bg, |
---|
88 | gboolean rotate_pixmap_bg, |
---|
89 | GdkColor *back_color); |
---|
90 | |
---|
91 | |
---|
92 | void border_widget_change_edge (BorderWidget *border, BorderEdge edge); |
---|
93 | |
---|
94 | END_GNOME_DECLS |
---|
95 | #endif |
---|