libyui-gtk-pkg  2.43.2
 All Classes
ygtkcellrenderersidebutton.h
1 /********************************************************************
2  * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
3  ********************************************************************/
4 
5 /* A icon GtkButton next to a GtkLabel.
6 */
7 
8 #ifndef YGTK_CELL_RENDERER_SIDE_BUTTON_H
9 #define YGTK_CELL_RENDERER_SIDE_BUTTON_H
10 
11 #include <gtk/gtk.h>
12 G_BEGIN_DECLS
13 
14 #define YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON (ygtk_cell_renderer_side_button_get_type())
15 #define YGTK_CELL_RENDERER_SIDE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
16  YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON, YGtkCellRendererSideButton))
17 #define YGTK_CELL_RENDERER_SIDE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
18  YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON, YGtkCellRendererSideButtonClass))
19 #define YGTK_IS_CELL_RENDERER_SIDE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
20  YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON))
21 #define YGTK_IS_CELL_RENDERER_SIDE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
22  YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON))
23 #define YGTK_CELL_RENDERER_SIDE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
24  YGTK_TYPE_CELL_RENDERER_SIDE_BUTTON, YGtkCellRendererSideButtonClass))
25 
27 {
28  GtkCellRendererText parent;
29 
30  // private:
31  guint active : 2, button_visible : 2;
32  gchar *stock_id;
33  GdkPixbuf *pixbuf;
35 
37 {
38  GtkCellRendererTextClass parent_class;
39 
40  void (* toggled) (YGtkCellRendererSideButton *renderer, const gchar *path);
42 
43 GtkCellRenderer *ygtk_cell_renderer_side_button_new (void);
44 GType ygtk_cell_renderer_side_button_get_type (void) G_GNUC_CONST;
45 
46 gboolean ygtk_cell_renderer_side_button_get_active (YGtkCellRendererSideButton *cell);
47 
48 G_END_DECLS
49 #endif
50