![]() |
![]() |
![]() |
CriaCanvas Reference Manual | ![]() |
---|
CriaCanvasCriaCanvas — The display widget for the CriaCanvas. |
#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);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkLayout +----GnomeCanvas +----CriaCanvas
"focus-changed" gboolean user_function (CriaCanvas *criacanvas, CriaItem *arg1, gpointer user_data);
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 |
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. |
CriaCanvas* cria_canvas_new (void);
Creates a new CriaCanvas.
Returns : | the newly created and canvas. |
void cria_canvas_set_padding (CriaCanvas *self, guint64 padding);
Set the padding of the canvas.
self : |
a CriaCanvas |
padding : |
the new padding |
padding
" property"padding" guint64 : Read / Write / Construct
The padding between the slide and the widget edges.
Default value: 0
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 : |
<< Part II. API Reference | CriaItem >> |