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

Go to the source code of this file.

Data Structures

struct  _EvMedia
 
struct  _EvMediaClass
 

Macros

#define EV_TYPE_MEDIA   (ev_media_get_type())
 
#define EV_MEDIA(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_MEDIA, EvMedia))
 
#define EV_IS_MEDIA(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_MEDIA))
 
#define EV_MEDIA_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_MEDIA, EvMediaClass))
 
#define EV_IS_MEDIA_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_MEDIA))
 
#define EV_MEDIA_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_MEDIA, EvMediaClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvMedia 
EvMedia
 
typedef struct _EvMediaClass EvMediaClass
 
typedef struct _EvMediaPrivate EvMediaPrivate
 

Functions

GType ev_media_get_type (void) G_GNUC_CONST
 
EvMediaev_media_new_for_uri (EvPage *page, const gchar *uri)
 
const gchar * ev_media_get_uri (EvMedia *media)
 
guint ev_media_get_page_index (EvMedia *media)
 
gboolean ev_media_get_show_controls (EvMedia *media)
 
void ev_media_set_show_controls (EvMedia *media, gboolean show_controls)
 

Macro Definition Documentation

#define EV_IS_MEDIA (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_MEDIA))

Definition at line 38 of file ev-media.h.

#define EV_IS_MEDIA_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_MEDIA))

Definition at line 40 of file ev-media.h.

#define EV_MEDIA (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_MEDIA, EvMedia))

Definition at line 37 of file ev-media.h.

#define EV_MEDIA_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_MEDIA, EvMediaClass))

Definition at line 39 of file ev-media.h.

#define EV_MEDIA_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_MEDIA, EvMediaClass))

Definition at line 41 of file ev-media.h.

#define EV_TYPE_MEDIA   (ev_media_get_type())

Definition at line 36 of file ev-media.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvMedia EvMedia

Definition at line 32 of file ev-media.h.

typedef struct _EvMediaClass EvMediaClass

Definition at line 33 of file ev-media.h.

Definition at line 34 of file ev-media.h.

Function Documentation

guint ev_media_get_page_index ( EvMedia media)

Definition at line 83 of file ev-media.c.

84 {
85  g_return_val_if_fail (EV_IS_MEDIA (media), 0);
86 
87  return media->priv->page;
88 }

+ Here is the caller graph for this function:

gboolean ev_media_get_show_controls ( EvMedia media)

Definition at line 91 of file ev-media.c.

92 {
93  g_return_val_if_fail (EV_IS_MEDIA (media), FALSE);
94 
95  return media->priv->show_controls;
96 }

+ Here is the caller graph for this function:

GType ev_media_get_type ( void  )
const gchar* ev_media_get_uri ( EvMedia media)

Definition at line 75 of file ev-media.c.

76 {
77  g_return_val_if_fail (EV_IS_MEDIA (media), NULL);
78 
79  return media->priv->uri;
80 }

+ Here is the caller graph for this function:

EvMedia* ev_media_new_for_uri ( EvPage page,
const gchar *  uri 
)

Definition at line 59 of file ev-media.c.

61 {
62  EvMedia *media;
63 
64  g_return_val_if_fail (EV_IS_PAGE (page), NULL);
65  g_return_val_if_fail (uri != NULL, NULL);
66 
67  media = EV_MEDIA (g_object_new (EV_TYPE_MEDIA, NULL));
68  media->priv->page = page->index;
69  media->priv->uri = g_strdup (uri);
70 
71  return media;
72 }

+ Here is the caller graph for this function:

void ev_media_set_show_controls ( EvMedia media,
gboolean  show_controls 
)

Definition at line 99 of file ev-media.c.

101 {
102  g_return_if_fail (EV_IS_MEDIA (media));
103 
104  media->priv->show_controls = show_controls;
105 }

+ Here is the caller graph for this function: