stage-window: Add ::redraw virtual function

How to redraw a ClutterStage's implementation should be part of the
ClutterStageWindow interface.
This commit is contained in:
Emmanuele Bassi 2011-02-04 15:08:48 +00:00
parent bbf73f58b6
commit 7da930fb75
2 changed files with 16 additions and 0 deletions

View File

@ -180,3 +180,15 @@ _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
if (iface->set_accept_focus)
iface->set_accept_focus (window, accept_focus);
}
void
_clutter_stage_window_redraw (ClutterStageWindow *window)
{
ClutterStageWindowIface *iface;
g_return_if_fail (CLUTTER_IS_STAGE_WINDOW (window));
iface = CLUTTER_STAGE_WINDOW_GET_IFACE (window);
if (iface->redraw)
iface->redraw (window);
}

View File

@ -66,6 +66,8 @@ struct _ClutterStageWindowIface
void (* set_accept_focus) (ClutterStageWindow *stage_window,
gboolean accept_focus);
void (* redraw) (ClutterStageWindow *stage_window);
};
GType clutter_stage_window_get_type (void) G_GNUC_CONST;
@ -103,6 +105,8 @@ gboolean _clutter_stage_window_ignoring_redraw_clips (ClutterStageWindow *w
void _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
gboolean accept_focus);
void _clutter_stage_window_redraw (ClutterStageWindow *window);
G_END_DECLS
#endif /* __CLUTTER_STAGE_WINDOW_H__ */