Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gimpcellrenderertoggle.h File Reference
#include <gtk/gtk.h>
#include <glib-object.h>
+ Include dependency graph for gimpcellrenderertoggle.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _GimpCellRendererToggle
 
struct  _GimpCellRendererToggleClass
 

Macros

#define GIMP_TYPE_CELL_RENDERER_TOGGLE   (gimp_cell_renderer_toggle_get_type ())
 
#define GIMP_CELL_RENDERER_TOGGLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggle))
 
#define GIMP_CELL_RENDERER_TOGGLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggleClass))
 
#define GIMP_IS_CELL_RENDERER_TOGGLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE))
 
#define GIMP_IS_CELL_RENDERER_TOGGLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CELL_RENDERER_TOGGLE))
 
#define GIMP_CELL_RENDERER_TOGGLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggleClass))
 

Typedefs

typedef struct
_GimpCellRendererToggle 
GimpCellRendererToggle
 
typedef struct
_GimpCellRendererToggleClass 
GimpCellRendererToggleClass
 

Functions

GType gimp_cell_renderer_toggle_get_type (void) G_GNUC_CONST
 
GtkCellRenderer * gimp_cell_renderer_toggle_new (const gchar *stock_id)
 
void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cell, const gchar *path, GdkModifierType state)
 

Macro Definition Documentation

#define GIMP_CELL_RENDERER_TOGGLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggle))

Definition at line 32 of file gimpcellrenderertoggle.h.

#define GIMP_CELL_RENDERER_TOGGLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggleClass))

Definition at line 33 of file gimpcellrenderertoggle.h.

#define GIMP_CELL_RENDERER_TOGGLE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE, GimpCellRendererToggleClass))

Definition at line 36 of file gimpcellrenderertoggle.h.

#define GIMP_IS_CELL_RENDERER_TOGGLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CELL_RENDERER_TOGGLE))

Definition at line 34 of file gimpcellrenderertoggle.h.

#define GIMP_IS_CELL_RENDERER_TOGGLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CELL_RENDERER_TOGGLE))

Definition at line 35 of file gimpcellrenderertoggle.h.

#define GIMP_TYPE_CELL_RENDERER_TOGGLE   (gimp_cell_renderer_toggle_get_type ())

Definition at line 31 of file gimpcellrenderertoggle.h.

Typedef Documentation

Definition at line 38 of file gimpcellrenderertoggle.h.

Function Documentation

void gimp_cell_renderer_toggle_clicked ( GimpCellRendererToggle cell,
const gchar *  path,
GdkModifierType  state 
)

gimp_cell_renderer_toggle_clicked: : a GimpCellRendererToggle : :

Emits the "clicked" signal from a GimpCellRendererToggle.

Since: GIMP 2.2

Definition at line 489 of file gimpcellrenderertoggle.c.

492 {
493  g_return_if_fail (GIMP_IS_CELL_RENDERER_TOGGLE (cell));
494  g_return_if_fail (path != NULL);
495 
496  g_signal_emit (cell, toggle_cell_signals[CLICKED], 0, path, state);
497 }

+ Here is the caller graph for this function:

GType gimp_cell_renderer_toggle_get_type ( void  )
GtkCellRenderer* gimp_cell_renderer_toggle_new ( const gchar *  stock_id)

gimp_cell_renderer_toggle_new: : the stock_id of the icon to use for the active state

Creates a custom version of the #GtkCellRendererToggle. Instead of showing the standard toggle button, it shows a stock icon if the cell is active and no icon otherwise. This cell renderer is for example used in the Layers treeview to indicate and control the layer's visibility by showing GIMP_STOCK_VISIBLE.

Return value: a new GimpCellRendererToggle

Since: GIMP 2.2

Definition at line 471 of file gimpcellrenderertoggle.c.

472 {
473  return g_object_new (GIMP_TYPE_CELL_RENDERER_TOGGLE,
474  "stock_id", stock_id,
475  NULL);
476 }

+ Here is the caller graph for this function: