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
ev-module.h File Reference
#include <glib-object.h>
+ Include dependency graph for ev-module.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_MODULE   (_ev_module_get_type ())
 
#define EV_MODULE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_MODULE, EvModule))
 
#define EV_MODULE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_MODULE, EvModuleClass))
 
#define EV_IS_MODULE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_MODULE))
 
#define EV_IS_MODULE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_MODULE))
 
#define EV_MODULE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_MODULE, EvModuleClass))
 

Typedefs

typedef struct _EvModule EvModule
 

Functions

GType _ev_module_get_type (void) G_GNUC_CONST
 
EvModule_ev_module_new (const gchar *path, gboolean resident)
 
const gchar * _ev_module_get_path (EvModule *module)
 
GObject * _ev_module_new_object (EvModule *module)
 
GType _ev_module_get_object_type (EvModule *module)
 

Macro Definition Documentation

#define EV_IS_MODULE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_MODULE))

Definition at line 55 of file ev-module.h.

#define EV_IS_MODULE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_MODULE))

Definition at line 56 of file ev-module.h.

#define EV_MODULE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_MODULE, EvModule))

Definition at line 53 of file ev-module.h.

#define EV_MODULE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_MODULE, EvModuleClass))

Definition at line 54 of file ev-module.h.

#define EV_MODULE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_MODULE, EvModuleClass))

Definition at line 57 of file ev-module.h.

#define EV_TYPE_MODULE   (_ev_module_get_type ())

Definition at line 52 of file ev-module.h.

Typedef Documentation

typedef struct _EvModule EvModule

Definition at line 59 of file ev-module.h.

Function Documentation

GType _ev_module_get_object_type ( EvModule module)

Definition at line 146 of file ev-module.c.

147 {
148  g_return_val_if_fail (EV_IS_MODULE (module), 0);
149 
150  return module->type;
151 }
const gchar* _ev_module_get_path ( EvModule module)

Definition at line 127 of file ev-module.c.

128 {
129  g_return_val_if_fail (EV_IS_MODULE (module), NULL);
130 
131  return module->path;
132 }
GType _ev_module_get_type ( void  )
EvModule* _ev_module_new ( const gchar *  path,
gboolean  resident 
)

Definition at line 181 of file ev-module.c.

183 {
184  EvModule *result;
185 
186  g_return_val_if_fail (path != NULL && path[0] != '\0', NULL);
187 
188  result = g_object_new (EV_TYPE_MODULE, NULL);
189 
190  g_type_module_set_name (G_TYPE_MODULE (result), path);
191  result->path = g_strdup (path);
192  result->resident = resident;
193 
194  return result;
195 }

+ Here is the caller graph for this function:

GObject* _ev_module_new_object ( EvModule module)

Definition at line 135 of file ev-module.c.

136 {
137  g_return_val_if_fail (EV_IS_MODULE (module), NULL);
138 
139  if (module->type == 0)
140  return NULL;
141 
142  return g_object_new (module->type, NULL);
143 }

+ Here is the caller graph for this function: