2008-04-04 11:02:11 -04:00
|
|
|
#ifndef __CLUTTER_STAGE_WINDOW_H__
|
|
|
|
#define __CLUTTER_STAGE_WINDOW_H__
|
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
#include <cogl/cogl.h>
|
2012-03-01 06:06:04 -05:00
|
|
|
#include <clutter/clutter-types.h>
|
2012-02-21 10:55:51 -05:00
|
|
|
|
2008-04-04 11:02:11 -04:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2012-03-01 06:06:04 -05:00
|
|
|
#define CLUTTER_TYPE_STAGE_WINDOW (_clutter_stage_window_get_type ())
|
2008-04-04 11:02:11 -04:00
|
|
|
#define CLUTTER_STAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_WINDOW, ClutterStageWindow))
|
|
|
|
#define CLUTTER_IS_STAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_WINDOW))
|
|
|
|
#define CLUTTER_STAGE_WINDOW_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CLUTTER_TYPE_STAGE_WINDOW, ClutterStageWindowIface))
|
|
|
|
|
2012-03-01 06:06:04 -05:00
|
|
|
/*
|
2010-12-10 12:15:39 -05:00
|
|
|
* ClutterStageWindow: (skip)
|
2010-09-08 11:41:47 -04:00
|
|
|
*
|
|
|
|
* <structname>ClutterStageWindow</structname> is an opaque structure
|
|
|
|
* whose members should not be accessed directly
|
|
|
|
*
|
|
|
|
* Since: 0.8
|
|
|
|
*/
|
2008-04-04 11:02:11 -04:00
|
|
|
typedef struct _ClutterStageWindow ClutterStageWindow; /* dummy */
|
|
|
|
typedef struct _ClutterStageWindowIface ClutterStageWindowIface;
|
|
|
|
|
2012-03-01 06:06:04 -05:00
|
|
|
/*
|
2010-12-10 12:15:39 -05:00
|
|
|
* ClutterStageWindowIface: (skip)
|
2010-09-08 11:41:47 -04:00
|
|
|
*
|
|
|
|
* The interface implemented by backends for stage windows
|
|
|
|
*
|
|
|
|
* Since: 0.8
|
|
|
|
*/
|
2008-04-04 11:02:11 -04:00
|
|
|
struct _ClutterStageWindowIface
|
|
|
|
{
|
2010-09-08 11:41:47 -04:00
|
|
|
/*< private >*/
|
2008-04-04 11:02:11 -04:00
|
|
|
GTypeInterface parent_iface;
|
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
ClutterActor *(* get_wrapper) (ClutterStageWindow *stage_window);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void (* set_title) (ClutterStageWindow *stage_window,
|
|
|
|
const gchar *title);
|
|
|
|
void (* set_fullscreen) (ClutterStageWindow *stage_window,
|
|
|
|
gboolean is_fullscreen);
|
|
|
|
void (* set_cursor_visible) (ClutterStageWindow *stage_window,
|
|
|
|
gboolean cursor_visible);
|
|
|
|
void (* set_user_resizable) (ClutterStageWindow *stage_window,
|
|
|
|
gboolean is_resizable);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
gboolean (* realize) (ClutterStageWindow *stage_window);
|
|
|
|
void (* unrealize) (ClutterStageWindow *stage_window);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void (* show) (ClutterStageWindow *stage_window,
|
|
|
|
gboolean do_raise);
|
|
|
|
void (* hide) (ClutterStageWindow *stage_window);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void (* resize) (ClutterStageWindow *stage_window,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void (* get_geometry) (ClutterStageWindow *stage_window,
|
2011-08-16 11:01:22 -04:00
|
|
|
cairo_rectangle_int_t *geometry);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
int (* get_pending_swaps) (ClutterStageWindow *stage_window);
|
2009-11-30 12:47:55 -05:00
|
|
|
|
2011-08-16 11:01:22 -04:00
|
|
|
void (* add_redraw_clip) (ClutterStageWindow *stage_window,
|
|
|
|
cairo_rectangle_int_t *stage_rectangle);
|
|
|
|
gboolean (* has_redraw_clips) (ClutterStageWindow *stage_window);
|
|
|
|
gboolean (* ignoring_redraw_clips) (ClutterStageWindow *stage_window);
|
|
|
|
gboolean (* get_redraw_clip_bounds) (ClutterStageWindow *stage_window,
|
2011-07-12 12:16:43 -04:00
|
|
|
cairo_rectangle_int_t *clip);
|
|
|
|
|
2010-12-28 12:36:27 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void (* set_accept_focus) (ClutterStageWindow *stage_window,
|
|
|
|
gboolean accept_focus);
|
2011-02-04 10:08:48 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void (* redraw) (ClutterStageWindow *stage_window);
|
|
|
|
|
2013-02-03 05:51:19 -05:00
|
|
|
void (* dirty_back_buffer) (ClutterStageWindow *stage_window);
|
|
|
|
|
2013-02-06 05:05:58 -05:00
|
|
|
void (* get_dirty_pixel) (ClutterStageWindow *stage_window,
|
|
|
|
int *x, int *y);
|
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
CoglFramebuffer *(* get_active_framebuffer) (ClutterStageWindow *stage_window);
|
2011-09-30 08:58:40 -04:00
|
|
|
|
|
|
|
gboolean (* can_clip_redraws) (ClutterStageWindow *stage_window);
|
2008-04-04 11:02:11 -04:00
|
|
|
};
|
|
|
|
|
2012-03-01 06:06:04 -05:00
|
|
|
GType _clutter_stage_window_get_type (void) G_GNUC_CONST;
|
2008-04-04 11:02:11 -04:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
ClutterActor * _clutter_stage_window_get_wrapper (ClutterStageWindow *window);
|
|
|
|
|
|
|
|
void _clutter_stage_window_set_title (ClutterStageWindow *window,
|
|
|
|
const gchar *title);
|
|
|
|
void _clutter_stage_window_set_fullscreen (ClutterStageWindow *window,
|
|
|
|
gboolean is_fullscreen);
|
|
|
|
void _clutter_stage_window_set_cursor_visible (ClutterStageWindow *window,
|
|
|
|
gboolean is_visible);
|
|
|
|
void _clutter_stage_window_set_user_resizable (ClutterStageWindow *window,
|
|
|
|
gboolean is_resizable);
|
|
|
|
|
|
|
|
gboolean _clutter_stage_window_realize (ClutterStageWindow *window);
|
|
|
|
void _clutter_stage_window_unrealize (ClutterStageWindow *window);
|
|
|
|
|
|
|
|
void _clutter_stage_window_show (ClutterStageWindow *window,
|
|
|
|
gboolean do_raise);
|
|
|
|
void _clutter_stage_window_hide (ClutterStageWindow *window);
|
|
|
|
|
|
|
|
void _clutter_stage_window_resize (ClutterStageWindow *window,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void _clutter_stage_window_get_geometry (ClutterStageWindow *window,
|
2011-08-16 11:01:22 -04:00
|
|
|
cairo_rectangle_int_t *geometry);
|
2011-03-10 17:05:03 -05:00
|
|
|
int _clutter_stage_window_get_pending_swaps (ClutterStageWindow *window);
|
|
|
|
|
2011-08-16 11:01:22 -04:00
|
|
|
void _clutter_stage_window_add_redraw_clip (ClutterStageWindow *window,
|
|
|
|
cairo_rectangle_int_t *stage_clip);
|
|
|
|
gboolean _clutter_stage_window_has_redraw_clips (ClutterStageWindow *window);
|
|
|
|
gboolean _clutter_stage_window_ignoring_redraw_clips (ClutterStageWindow *window);
|
|
|
|
gboolean _clutter_stage_window_get_redraw_clip_bounds (ClutterStageWindow *window,
|
2011-07-12 12:16:43 -04:00
|
|
|
cairo_rectangle_int_t *clip);
|
2011-03-10 17:05:03 -05:00
|
|
|
|
|
|
|
void _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
|
2011-08-16 11:01:22 -04:00
|
|
|
gboolean accept_focus);
|
2010-12-28 12:36:27 -05:00
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
void _clutter_stage_window_redraw (ClutterStageWindow *window);
|
|
|
|
|
2013-02-03 05:51:19 -05:00
|
|
|
void _clutter_stage_window_dirty_back_buffer (ClutterStageWindow *window);
|
|
|
|
|
2013-02-06 05:05:58 -05:00
|
|
|
void _clutter_stage_window_get_dirty_pixel (ClutterStageWindow *window,
|
|
|
|
int *x, int *y);
|
|
|
|
|
2011-03-10 17:05:03 -05:00
|
|
|
CoglFramebuffer *_clutter_stage_window_get_active_framebuffer (ClutterStageWindow *window);
|
2011-02-04 10:08:48 -05:00
|
|
|
|
2011-09-30 08:58:40 -04:00
|
|
|
gboolean _clutter_stage_window_can_clip_redraws (ClutterStageWindow *window);
|
|
|
|
|
2008-04-04 11:02:11 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __CLUTTER_STAGE_WINDOW_H__ */
|