Top |
Functions
GcrViewer * | gcr_viewer_new () |
GcrViewer * | gcr_viewer_new_scrolled () |
void | gcr_viewer_add_renderer () |
void | gcr_viewer_insert_renderer () |
void | gcr_viewer_remove_renderer () |
guint | gcr_viewer_count_renderers () |
GcrRenderer * | gcr_viewer_get_renderer () |
Description
A GcrViewer is an abstract interface that represents a widget that can hold various renderers and display their contents.
The interaction between GcrRenderer and GcrViewer is not stable yet, and so viewers cannot be implemented outside the Gcr library at this time.
Use the gcr_viewer_new()
and gcr_viewer_new_scrolled()
to get default
implementations of viewers.
Functions
gcr_viewer_new ()
GcrViewer *
gcr_viewer_new (void
);
Get an implementation of GcrViewer that supports a view of multiple renderers.
Returns
a newly allocated GcrViewer, which should be
released with g_object_unref()
.
[transfer full]
gcr_viewer_new_scrolled ()
GcrViewer *
gcr_viewer_new_scrolled (void
);
Get an implementation of GcrViewer that supports a scrolled view of multiple renderers.
gcr_viewer_add_renderer ()
void gcr_viewer_add_renderer (GcrViewer *viewer
,GcrRenderer *renderer
);
Add a renderer to this viewer.
gcr_viewer_insert_renderer ()
void gcr_viewer_insert_renderer (GcrViewer *viewer
,GcrRenderer *renderer
,GcrRenderer *before
);
Insert a renderer at a specific point in the viewer
gcr_viewer_remove_renderer ()
void gcr_viewer_remove_renderer (GcrViewer *viewer
,GcrRenderer *renderer
);
Remove a renderer from this viewer.
gcr_viewer_count_renderers ()
guint
gcr_viewer_count_renderers (GcrViewer *viewer
);
Get the number of renderers present in the viewer.
gcr_viewer_get_renderer ()
GcrRenderer * gcr_viewer_get_renderer (GcrViewer *viewer
,guint index_
);
Get a pointer to the renderer at the given index. It is an error to request an index that is out of bounds.
Types and Values
GcrViewer
typedef struct _GcrViewer GcrViewer;
An abstract viewer which displays renderers contents.
struct GcrViewerIface
struct GcrViewerIface { GTypeInterface parent; void (*add_renderer) (GcrViewer *viewer, GcrRenderer *renderer); void (*insert_renderer) (GcrViewer *viewer, GcrRenderer *renderer, GcrRenderer *before); void (*remove_renderer) (GcrViewer *viewer, GcrRenderer *renderer); guint (*count_renderers) (GcrViewer *viewer); GcrRenderer* (*get_renderer) (GcrViewer *viewer, guint index_); };
The interface for GcrViewer