diff options
author | Benjamin Otte <otte@gnome.org> | 2004-01-04 18:02:30 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-01-04 18:02:30 +0000 |
commit | 181c68d79a86c995af5be62b2a36f503988dc637 (patch) | |
tree | 4afa57161071baa8ee423658ce468c5bebe4b887 /gst-libs/gst/xoverlay/xoverlay.h | |
parent | bc03c8c8aa12143aeab58e8510e76fc48071c641 (diff) | |
download | gst-plugins-bad-181c68d79a86c995af5be62b2a36f503988dc637.tar.gz gst-plugins-bad-181c68d79a86c995af5be62b2a36f503988dc637.tar.bz2 gst-plugins-bad-181c68d79a86c995af5be62b2a36f503988dc637.zip |
gst-libs/gst/xoverlay/xoverlay.*: Add optional "desired size" signal and querying.
Original commit message from CVS:
2004-01-04 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_base_init),
(gst_x_overlay_got_xwindow_id), (gst_x_overlay_get_desired_size),
(gst_x_overlay_got_desired_size):
* gst-libs/gst/xoverlay/xoverlay.h:
Add optional "desired size" signal and querying.
Diffstat (limited to 'gst-libs/gst/xoverlay/xoverlay.h')
-rw-r--r-- | gst-libs/gst/xoverlay/xoverlay.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gst-libs/gst/xoverlay/xoverlay.h b/gst-libs/gst/xoverlay/xoverlay.h index 062fadf4..4c684870 100644 --- a/gst-libs/gst/xoverlay/xoverlay.h +++ b/gst-libs/gst/xoverlay/xoverlay.h @@ -50,10 +50,17 @@ typedef struct _GstXOverlayClass { /* virtual functions */ void (* set_xwindow_id) (GstXOverlay *overlay, XID xwindow_id); + /* optional virtual functions */ + void (* get_desired_size) (GstXOverlay *overlay, + guint *width, + guint *height); /* signals */ void (*have_xwindow_id) (GstXOverlay *overlay, XID xwindow_id); + void (* desired_size) (GstXOverlay *overlay, + guint width, + guint height); gpointer _gst_reserved[GST_PADDING]; } GstXOverlayClass; @@ -62,9 +69,11 @@ GType gst_x_overlay_get_type (void); /* virtual class function wrappers */ void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id); +void gst_x_overlay_get_desired_size (GstXOverlay *overlay, guint *width, guint *height); /* public methods to fire signals */ void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id); +void gst_x_overlay_got_desired_size (GstXOverlay *overlay, guint width, guint height); G_END_DECLS |