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-annotation-window.h File Reference
#include <gtk/gtk.h>
#include "ev-annotation.h"
+ Include dependency graph for ev-annotation-window.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_ANNOTATION_WINDOW   (ev_annotation_window_get_type())
 
#define EV_ANNOTATION_WINDOW(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindow))
 
#define EV_ANNOTATION_WINDOW_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))
 
#define EV_IS_ANNOTATION_WINDOW(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_ANNOTATION_WINDOW))
 
#define EV_IS_ANNOTATION_WINDOW_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_ANNOTATION_WINDOW))
 
#define EV_ANNOTATION_WINDOW_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvAnnotationWindow 
EvAnnotationWindow
 
typedef struct
_EvAnnotationWindowClass 
EvAnnotationWindowClass
 

Functions

GType ev_annotation_window_get_type (void) G_GNUC_CONST
 
GtkWidget * ev_annotation_window_new (EvAnnotation *annot, GtkWindow *parent)
 
EvAnnotationev_annotation_window_get_annotation (EvAnnotationWindow *window)
 
void ev_annotation_window_set_annotation (EvAnnotationWindow *window, EvAnnotation *annot)
 
gboolean ev_annotation_window_is_open (EvAnnotationWindow *window)
 
void ev_annotation_window_get_rectangle (EvAnnotationWindow *window, EvRectangle *rect)
 
void ev_annotation_window_set_rectangle (EvAnnotationWindow *window, const EvRectangle *rect)
 
void ev_annotation_window_grab_focus (EvAnnotationWindow *window)
 
void ev_annotation_window_ungrab_focus (EvAnnotationWindow *window)
 

Macro Definition Documentation

#define EV_ANNOTATION_WINDOW (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindow))

Definition at line 35 of file ev-annotation-window.h.

#define EV_ANNOTATION_WINDOW_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))

Definition at line 36 of file ev-annotation-window.h.

#define EV_ANNOTATION_WINDOW_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_ANNOTATION_WINDOW, EvAnnotationWindowClass))

Definition at line 39 of file ev-annotation-window.h.

#define EV_IS_ANNOTATION_WINDOW (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_ANNOTATION_WINDOW))

Definition at line 37 of file ev-annotation-window.h.

#define EV_IS_ANNOTATION_WINDOW_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_ANNOTATION_WINDOW))

Definition at line 38 of file ev-annotation-window.h.

#define EV_TYPE_ANNOTATION_WINDOW   (ev_annotation_window_get_type())

Definition at line 34 of file ev-annotation-window.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvAnnotationWindow EvAnnotationWindow

Definition at line 31 of file ev-annotation-window.h.

Definition at line 32 of file ev-annotation-window.h.

Function Documentation

EvAnnotation* ev_annotation_window_get_annotation ( EvAnnotationWindow window)

Definition at line 624 of file ev-annotation-window.c.

625 {
626  g_return_val_if_fail (EV_IS_ANNOTATION_WINDOW (window), NULL);
627 
628  return window->annotation;
629 }

+ Here is the caller graph for this function:

void ev_annotation_window_get_rectangle ( EvAnnotationWindow window,
EvRectangle rect 
)

Definition at line 656 of file ev-annotation-window.c.

658 {
659  g_return_if_fail (EV_IS_ANNOTATION_WINDOW (window));
660  g_return_if_fail (rect != NULL);
661 
662  *rect = window->rect;
663 }

+ Here is the caller graph for this function:

GType ev_annotation_window_get_type ( void  )
void ev_annotation_window_grab_focus ( EvAnnotationWindow window)

Definition at line 676 of file ev-annotation-window.c.

677 {
678  g_return_if_fail (EV_IS_ANNOTATION_WINDOW (window));
679 
680  if (!gtk_widget_has_focus (window->text_view)) {
681  gtk_widget_grab_focus (GTK_WIDGET (window));
682  send_focus_change (window->text_view, TRUE);
683  }
684 }
gboolean ev_annotation_window_is_open ( EvAnnotationWindow window)

Definition at line 648 of file ev-annotation-window.c.

649 {
650  g_return_val_if_fail (EV_IS_ANNOTATION_WINDOW (window), FALSE);
651 
652  return window->is_open;
653 }

+ Here is the caller graph for this function:

GtkWidget* ev_annotation_window_new ( EvAnnotation annot,
GtkWindow *  parent 
)

Definition at line 608 of file ev-annotation-window.c.

610 {
611  GtkWidget *window;
612 
613  g_return_val_if_fail (EV_IS_ANNOTATION_MARKUP (annot), NULL);
614  g_return_val_if_fail (GTK_IS_WINDOW (parent), NULL);
615 
616  window = g_object_new (EV_TYPE_ANNOTATION_WINDOW,
617  "annotation", annot,
618  "parent", parent,
619  NULL);
620  return window;
621 }

+ Here is the caller graph for this function:

void ev_annotation_window_set_annotation ( EvAnnotationWindow window,
EvAnnotation annot 
)

Definition at line 632 of file ev-annotation-window.c.

634 {
635  g_return_if_fail (EV_IS_ANNOTATION_WINDOW (window));
636  g_return_if_fail (EV_IS_ANNOTATION (annot));
637 
638  if (annot == window->annotation)
639  return;
640 
641  g_object_unref (window->annotation);
642  window->annotation = g_object_ref (annot);
644  g_object_notify (G_OBJECT (window), "annotation");
645 }
void ev_annotation_window_set_rectangle ( EvAnnotationWindow window,
const EvRectangle rect 
)

Definition at line 666 of file ev-annotation-window.c.

668 {
669  g_return_if_fail (EV_IS_ANNOTATION_WINDOW (window));
670  g_return_if_fail (rect != NULL);
671 
672  window->rect = *rect;
673 }
void ev_annotation_window_ungrab_focus ( EvAnnotationWindow window)

Definition at line 687 of file ev-annotation-window.c.

688 {
689  g_return_if_fail (EV_IS_ANNOTATION_WINDOW (window));
690 
691  if (gtk_widget_has_focus (window->text_view)) {
692  send_focus_change (window->text_view, FALSE);
693  }
694 
696 }

+ Here is the caller graph for this function: