source: trunk/third/bonobo/bonobo/bonobo-ui-toolbar-control-item.h @ 15509

Revision 15509, 2.1 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15508, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/**
3 * bonobo-ui-toolbar-control-item.c: A special toolbar item for controls.
4 *
5 * Author:
6 *      Jon K Hellan (hellan@acm.org)
7 *
8 * Copyright 2000 Jon K Hellan.
9 */
10#ifndef _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_
11#define _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_
12
13#include <libgnome/gnome-defs.h>
14#include "bonobo-ui-toolbar-button-item.h"
15#include "bonobo-widget.h"
16
17BEGIN_GNOME_DECLS
18
19#define BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM            (bonobo_ui_toolbar_control_item_get_type ())
20#define BONOBO_UI_TOOLBAR_CONTROL_ITEM(obj)            (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM, BonoboUIToolbarControlItem))
21#define BONOBO_UI_TOOLBAR_CONTROL_ITEM_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM, BonoboUIToolbarControlItemClass))
22#define BONOBO_IS_UI_TOOLBAR_CONTROL_ITEM(obj)         (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM))
23#define BONOBO_IS_UI_TOOLBAR_CONTROL_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM))
24
25typedef enum {
26        BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_CONTROL,
27        BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_BUTTON,
28        BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_NONE
29} BonoboUIToolbarControlDisplay;
30
31typedef struct _BonoboUIToolbarControlItemPrivate BonoboUIToolbarControlItemPrivate;
32
33typedef struct {
34        BonoboUIToolbarButtonItem parent;
35
36        BonoboUIToolbarControlItemPrivate *priv;
37} BonoboUIToolbarControlItem;
38
39typedef struct {
40        BonoboUIToolbarButtonItemClass parent_class;
41} BonoboUIToolbarControlItemClass;
42
43GtkType       bonobo_ui_toolbar_control_item_get_type    (void);
44GtkWidget    *bonobo_ui_toolbar_control_item_new         (Bonobo_Control control_ref);
45GtkWidget    *bonobo_ui_toolbar_control_item_construct   (BonoboUIToolbarControlItem *control_item,
46                                                          Bonobo_Control              control_ref);
47void          bonobo_ui_toolbar_control_item_set_display (BonoboUIToolbarControlItem    *item,
48                                                          BonoboUIToolbarControlDisplay  hdisplay,
49                                                          BonoboUIToolbarControlDisplay  vdisplay);
50
51END_GNOME_DECLS
52
53#endif /* _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_ */
Note: See TracBrowser for help on using the repository browser.