ClutterGstContent

ClutterGstContent — A ClutterContent for displaying video frames.

Synopsis

struct              ClutterGstContent;
struct              ClutterGstContentClass;
ClutterContent *    clutter_gst_content_new             (void);
ClutterContent *    clutter_gst_content_new_with_sink   (CoglGstVideoSink *sink);
ClutterGstFrame *   clutter_gst_content_get_frame       (ClutterGstContent *self);
ClutterGstPlayer *  clutter_gst_content_get_player      (ClutterGstContent *self);
CoglGstVideoSink *  clutter_gst_content_get_sink        (ClutterGstContent *self);
void                clutter_gst_content_set_player      (ClutterGstContent *self,
                                                         ClutterGstPlayer *player);
void                clutter_gst_content_set_sink        (ClutterGstContent *self,
                                                         CoglGstVideoSink *sink);

Object Hierarchy

  GObject
   +----ClutterGstContent
         +----ClutterGstAspectratio
         +----ClutterGstCrop

Implemented Interfaces

ClutterGstContent implements ClutterContent.

Properties

  "player"                   GObject*              : Read / Write
  "video-sink"               CoglGstVideoSink*     : Read / Write

Signals

  "size-change"                                    : Run Last

Description

ClutterGstContent implements the ClutterContent interface.

Details

struct ClutterGstContent

struct ClutterGstContent;

The ClutterGstContent structure contains only private data and should be accessed using the provided API

Since 0.0


struct ClutterGstContentClass

struct ClutterGstContentClass {
};

The ClutterGstContentClass structure contains only private data and should be accessed using the provided API

Since 0.0


clutter_gst_content_new ()

ClutterContent *    clutter_gst_content_new             (void);

Returns :

a new ClutterGstContent instance. [transfer full]

clutter_gst_content_new_with_sink ()

ClutterContent *    clutter_gst_content_new_with_sink   (CoglGstVideoSink *sink);

Returns :

a new ClutterGstContent instance. [transfer full]

Since 3.0


clutter_gst_content_get_frame ()

ClutterGstFrame *   clutter_gst_content_get_frame       (ClutterGstContent *self);

self :

A ClutterGstContent

Returns :

The ClutterGstFrame currently attached to self. [transfer none]

Since 3.0


clutter_gst_content_get_player ()

ClutterGstPlayer *  clutter_gst_content_get_player      (ClutterGstContent *self);

self :

A ClutterGstContent

Returns :

The ClutterGstPlayer currently attached to self. [transfer none]

Since 3.0


clutter_gst_content_get_sink ()

CoglGstVideoSink *  clutter_gst_content_get_sink        (ClutterGstContent *self);

self :

A ClutterGstContent

Returns :

The CoglGstVideoSink currently attached to self. [transfer none]

Since 3.0


clutter_gst_content_set_player ()

void                clutter_gst_content_set_player      (ClutterGstContent *self,
                                                         ClutterGstPlayer *player);

self :

A ClutterGstContent

player :

A ClutterGstPlayer or NULL

Since 3.0


clutter_gst_content_set_sink ()

void                clutter_gst_content_set_sink        (ClutterGstContent *self,
                                                         CoglGstVideoSink *sink);

self :

A ClutterGstContent

sink :

A CoglGstVideoSink or NULL

Since 3.0

Property Details

The "player" property

  "player"                   GObject*              : Read / Write

ClutterGst Player.


The "video-sink" property

  "video-sink"               CoglGstVideoSink*     : Read / Write

Cogl Video Sink.

Signal Details

The "size-change" signal

void                user_function                      (ClutterGstContent *content,
                                                        gint               width,
                                                        gint               height,
                                                        gpointer           user_data)      : Run Last

The ::size-change signal is emitted each time the video size changes.

content :

the ClutterGstContent instance that received the signal

width :

new width of the frames

height :

new height of the frames

user_data :

user data set when the signal handler was connected.