TotemCellRendererVideo

## TotemCellRendererVideo TotemCellRendererVideo — a GtkCellRenderer widget for listing videos |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <totem-cell-renderer-video.h>

                        TotemCellRendererVideo;
                        TotemCellRendererVideoClass;
    TotemCellRendererVideo * totem_cell_renderer_video_new  (gboolean use_placeholder);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkCellRenderer
                         +----TotemCellRendererVideo

## Properties

      "alignment"                PangoAlignment        : Read / Write
      "thumbnail"                GdkPixbuf*            : Read / Write
      "title"                    gchar*                : Read / Write
      "use-placeholder"          gboolean              : Read / Write

## Description

TotemCellRendererVideo is a GtkCellRenderer for rendering video thumbnails, typically in a TotemVideoList. It supports drawing a video thumbnail, and the video's title underneath.

## Details

### TotemCellRendererVideo

    typedef struct _TotemCellRendererVideo TotemCellRendererVideo;

All the fields in the TotemCellRendererVideo structure are private and should never be accessed directly.

### TotemCellRendererVideoClass

    typedef struct {
    	GtkCellRendererClass parent;
    } TotemCellRendererVideoClass;

The class structure for the TotemCellRendererVideo type.

GtkCellRendererClass `parent`; | the parent class

### totem_cell_renderer_video_new ()

    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.

`use_placeholder` : | if `TRUE`, use a placeholder thumbnail
Returns : | a new TotemCellRendererVideo

## Property Details

### The `"alignment"` property

      "alignment"                PangoAlignment        : Read / Write

A PangoAlignment giving the text alignment for the video title.

Default value: PANGO_ALIGN_CENTER

### The `"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.

### The `"title"` property

      "title"                    gchar*                : Read / Write

The title of the video, as it should be displayed.

Default value: "Unknown video"

### The `"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

## See Also

#TotemVideoList