39 #define GST_IS_X_OVERLAY_CLASS(klass) \ |
39 #define GST_IS_X_OVERLAY_CLASS(klass) \ |
40 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_X_OVERLAY)) |
40 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_X_OVERLAY)) |
41 #define GST_X_OVERLAY_GET_CLASS(inst) \ |
41 #define GST_X_OVERLAY_GET_CLASS(inst) \ |
42 (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_X_OVERLAY, GstXOverlayClass)) |
42 (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_X_OVERLAY, GstXOverlayClass)) |
43 |
43 |
|
44 /** |
|
45 * GstXOverlay: |
|
46 * |
|
47 * Opaque #GstXOverlay data structure. |
|
48 */ |
44 typedef struct _GstXOverlay GstXOverlay; |
49 typedef struct _GstXOverlay GstXOverlay; |
|
50 typedef struct _GstXOverlayClass GstXOverlayClass; |
45 |
51 |
46 typedef struct _GstXOverlayClass { |
52 /** |
|
53 * GstXOverlayClass: |
|
54 * @klass: parent interface type. |
|
55 * @set_xwindow_id: virtual method to configure the XWindow id |
|
56 * @expose: virtual method to handle expose events |
|
57 * @handle_events: virtual method to handle events |
|
58 * |
|
59 * #GstXOverlay interface |
|
60 */ |
|
61 struct _GstXOverlayClass { |
47 GTypeInterface klass; |
62 GTypeInterface klass; |
48 |
63 |
49 /* virtual functions */ |
64 /* virtual functions */ |
50 void (* set_xwindow_id) (GstXOverlay *overlay, |
65 void (* set_xwindow_id) (GstXOverlay *overlay, |
51 gulong xwindow_id); |
66 gulong xwindow_id); |