| Totem Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <totem-cell-renderer-video.h>
TotemCellRendererVideo;
TotemCellRendererVideoClass;
TotemCellRendererVideo * totem_cell_renderer_video_new (gboolean use_placeholder);
"alignment" PangoAlignment : Read / Write "thumbnail" GdkPixbuf* : Read / Write "title" gchar* : Read / Write "use-placeholder" gboolean : Read / Write
TotemCellRendererVideo is a GtkCellRenderer for rendering video thumbnails, typically in a TotemVideoList. It supports drawing a video thumbnail, and the video's title underneath.
typedef struct _TotemCellRendererVideo TotemCellRendererVideo;
All the fields in the TotemCellRendererVideo structure are private and should never be accessed directly.
typedef struct {
GtkCellRendererClass parent;
} TotemCellRendererVideoClass;
The class structure for the TotemCellRendererVideo type.
TotemCellRendererVideo * totem_cell_renderer_video_new (gboolean use_placeholder);
Creates a new TotemCellRendererVideo with its "use-placeholder"
property set to use_placeholder. If use_placeholder is TRUE,
the renderer will display a generic placeholder thumbnail if a
proper one is not available.
|
if TRUE, use a placeholder thumbnail |
Returns : |
a new TotemCellRendererVideo |
"alignment" property "alignment" PangoAlignment : Read / Write
A PangoAlignment giving the text alignment for the video title.
Default value: PANGO_ALIGN_CENTER
"thumbnail" property "thumbnail" GdkPixbuf* : Read / Write
A GdkPixbuf of a thumbnail of the video to display. When rendered, it will scale to the width of the parent GtkTreeView, so can be as large as reasonable.
"title" property"title" gchar* : Read / Write
The title of the video, as it should be displayed.
Default value: "Unknown video"
"use-placeholder" property"use-placeholder" gboolean : Read / Write
If TRUE, a placeholder image should be used for the video thumbnail if a "thumbnail" isn't provided.
Default value: FALSE