CriaCanvas

CriaCanvas — The display widget for the CriaCanvas.

Synopsis


#include <ccc/canvas.h>


            CriaCanvas;
GnomeCanvasItem* cria_canvas_get_focused    (CriaCanvas *self);
guint64     cria_canvas_get_padding         (CriaCanvas *self);
gdouble     cria_canvas_get_zoom            (CriaCanvas *self);
CriaCanvas* cria_canvas_new                 (void);
void        cria_canvas_set_padding         (CriaCanvas *self,
                                             guint64 padding);
void        cria_canvas_set_zoom            (CriaCanvas *self,
                                             gdouble zoom);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkLayout
                           +----GnomeCanvas
                                 +----CriaCanvas

Implemented Interfaces

CriaCanvas implements AtkImplementorIface.

Properties


  "padding"              guint64               : Read / Write / Construct
  "zoom"                 gdouble               : Read / Write / Construct

Signal Prototypes


"focus-changed"
            gboolean    user_function      (CriaCanvas *criacanvas,
                                            CriaItem *arg1,
                                            gpointer user_data);

Description

Details

CriaCanvas

typedef struct _CriaCanvas CriaCanvas;


cria_canvas_get_focused ()

GnomeCanvasItem* cria_canvas_get_focused    (CriaCanvas *self);

Get the currently selected renderer.

self : a CriaCanvas
Returns : the renderer that's currently selected; NULL if there is none

cria_canvas_get_padding ()

guint64     cria_canvas_get_padding         (CriaCanvas *self);

self :
Returns :

cria_canvas_get_zoom ()

gdouble     cria_canvas_get_zoom            (CriaCanvas *self);

Get the current zoom value of this canvas

self : a CriaCanvas
Returns : the zoom level of this canvas.

cria_canvas_new ()

CriaCanvas* cria_canvas_new                 (void);

Creates a new CriaCanvas.

Returns : the newly created and canvas.

cria_canvas_set_padding ()

void        cria_canvas_set_padding         (CriaCanvas *self,
                                             guint64 padding);

Set the padding of the canvas.

self : a CriaCanvas
padding : the new padding

cria_canvas_set_zoom ()

void        cria_canvas_set_zoom            (CriaCanvas *self,
                                             gdouble zoom);

self :
zoom :

Properties

The "padding" property

  "padding"              guint64               : Read / Write / Construct

The padding between the slide and the widget edges.

Default value: 0


The "zoom" property

  "zoom"                 gdouble               : Read / Write / Construct

The zoom factor of this display: 1.0 means "presentation size".

Allowed values: >= 0.01

Default value: 0.65

Signals

The "focus-changed" signal

gboolean    user_function                  (CriaCanvas *criacanvas,
                                            CriaItem *arg1,
                                            gpointer user_data);

criacanvas : the object which received the signal.
arg1 :
user_data : user data set when the signal handler was connected.
Returns :