source: trunk/third/gnome-panel/gnome-panel/drawer-widget.h @ 18631

Revision 18631, 3.2 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18630, which included commits to RCS files with non-trunk default branches.
Line 
1/* Gnome panel: drawer widget
2 * (C) 1999 the Free Software Foundation
3 *
4 * Authors:  Jacob Berkman
5 *           George Lebl
6 */
7
8#ifndef DRAWER_WIDGET_H
9#define DRAWER_WIDGET_H
10
11#include "basep-widget.h"
12#include "drawer.h"
13
14G_BEGIN_DECLS
15
16#define DRAWER_TYPE_POS                 (drawer_pos_get_type ())
17#define DRAWER_POS(object)              (G_TYPE_CHECK_INSTANCE_CAST ((object), DRAWER_TYPE_POS, DrawerPos))
18#define DRAWER_POS_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), DRAWER_TYPE_POS, DrawerPosClass))
19#define DRAWER_IS_POS(object)           (G_TYPE_CHECK_INSTANCE_TYPE ((object), DRAWER_TYPE_POS))
20#define DRAWER_IS_POS_CLASS(k)          (G_TYPE_CHECK_CLASS_TYPE ((klass), DRAWER_TYPE_POS))
21
22#define DRAWER_TYPE_WIDGET              (BASEP_TYPE_WIDGET)
23#define DRAWER_WIDGET(object)           (BASEP_WIDGET(object))
24#define DRAWER_WIDGET_CLASS(klass)      (BASEP_WIDGET_CLASS(klass))
25#define DRAWER_IS_WIDGET(object)        (BASEP_IS_WIDGET(object) && DRAWER_IS_POS(BASEP_WIDGET(object)->pos))
26/* this is not reliable */
27#define DRAWER_IS_WIDGET_CLASS(klass)   (BASEP_IS_WIDGET_CLASS(klass))
28
29typedef BasePWidget            DrawerWidget;
30typedef BasePWidgetClass       DrawerWidgetClass;
31
32typedef struct _DrawerPos      DrawerPos;
33typedef struct _DrawerPosClass DrawerPosClass;
34
35struct _DrawerPos {
36        BasePPos pos;
37
38        BasePState temp_hidden;
39        PanelOrient orient;
40};
41
42struct _DrawerPosClass {
43        BasePPosClass parent_class;
44
45#if 0
46        /* signal */
47        void (*orient_change) (DrawerPos *pos,
48                               PanelOrient orient);
49#endif
50};
51
52GType drawer_pos_get_type (void) G_GNUC_CONST;
53
54GtkWidget *drawer_widget_new (const char          *panel_id,
55                              int                  screen,
56                              int                  monitor,
57                              PanelOrient          orient,
58                              BasePMode            mode,
59                              BasePState           state,
60                              int                  sz,
61                              gboolean             hidebuttons_enabled,
62                              gboolean             hidebutton_pixmap_enabled,
63                              PanelBackgroundType  back_type,
64                              const char          *back_pixmap,
65                              gboolean             fit_pixmap_bg,
66                              gboolean             stretch_pixmap_bg,
67                              gboolean             rotate_pixmap_bg,
68                              PanelColor          *back_color);
69
70void drawer_widget_change_params (DrawerWidget        *drawer,
71                                  int                  screen,
72                                  int                  monitor,
73                                  PanelOrient          orient,
74                                  BasePMode            mode,
75                                  BasePState           state,
76                                  int                  sz,
77                                  gboolean             hidebuttons_enabled,
78                                  gboolean             hidebutton_pixmap_enabled,
79                                  PanelBackgroundType  back_type,
80                                  const char          *back_pixmap,
81                                  gboolean             fit_pixmap_bg,
82                                  gboolean             stretch_pixmap_bg,
83                                  gboolean             rotate_pixmap_bg,
84                                  PanelColor          *back_color);
85
86void drawer_widget_change_orient (DrawerWidget *drawer,
87                                  PanelOrient orient);
88
89/*open and close drawers*/
90void            drawer_widget_open_drawer       (DrawerWidget *panel,
91                                                 GtkWidget *parentp);
92void            drawer_widget_close_drawer      (DrawerWidget *panel,
93                                                 GtkWidget *parentp);
94
95void    drawer_widget_set_drawer (DrawerWidget *widget,
96                                  Drawer       *drawer);
97Drawer *drawer_widget_get_drawer (DrawerWidget *widget);
98
99G_END_DECLS
100
101#endif
Note: See TracBrowser for help on using the repository browser.