mirror of
https://github.com/brl/mutter.git
synced 2025-02-08 17:44:09 +00:00
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:
parent
bbf73f58b6
commit
7da930fb75
@ -180,3 +180,15 @@ _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
|
|||||||
if (iface->set_accept_focus)
|
if (iface->set_accept_focus)
|
||||||
iface->set_accept_focus (window, 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);
|
||||||
|
}
|
||||||
|
@ -66,6 +66,8 @@ struct _ClutterStageWindowIface
|
|||||||
|
|
||||||
void (* set_accept_focus) (ClutterStageWindow *stage_window,
|
void (* set_accept_focus) (ClutterStageWindow *stage_window,
|
||||||
gboolean accept_focus);
|
gboolean accept_focus);
|
||||||
|
|
||||||
|
void (* redraw) (ClutterStageWindow *stage_window);
|
||||||
};
|
};
|
||||||
|
|
||||||
GType clutter_stage_window_get_type (void) G_GNUC_CONST;
|
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,
|
void _clutter_stage_window_set_accept_focus (ClutterStageWindow *window,
|
||||||
gboolean accept_focus);
|
gboolean accept_focus);
|
||||||
|
|
||||||
|
void _clutter_stage_window_redraw (ClutterStageWindow *window);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __CLUTTER_STAGE_WINDOW_H__ */
|
#endif /* __CLUTTER_STAGE_WINDOW_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user