summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-03-15 13:17:04 +0000
committerRobert Bragg <robert@linux.intel.com>2011-04-11 14:31:31 +0100
commitec0b7814667fbbeee3dd25c79d565c645d8f01ba (patch)
tree6eaca771bff3bd7b04b765bbd552f02392290233 /clutter/clutter-stage-private.h
parent114133c98c417794c315fec81579fef1ffccf98b (diff)
downloadclutter-ec0b7814667fbbeee3dd25c79d565c645d8f01ba.tar.gz
stage: Move _clutter_do_pick to clutter-stage.c
This moves the implementation of _clutter_do_pick to clutter-stage.c and renames it _clutter_stage_do_pick. This function can be compared to _clutter_stage_do_update/redraw in that it prepares for and starts a traversal of a scenegraph descending from a given stage. Since it is desirable that this function should have access to the private state of the stage it is awkward to maintain outside of clutter-stage.c. Besides moving _clutter_do_pick this patch is also able to remove the following private state accessors from clutter-stage-private.h: _clutter_stage_set_pick_buffer_valid, _clutter_stage_get_pick_buffer_valid, _clutter_stage_increment_picks_per_frame_counter, _clutter_stage_reset_picks_per_frame_counter and _clutter_stage_get_picks_per_frame_counter.
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 7dad14fc7..79a22f3d3 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -64,14 +64,11 @@ void _clutter_stage_process_queued_events (ClutterStage *stage);
void _clutter_stage_update_input_devices (ClutterStage *stage);
int _clutter_stage_get_pending_swaps (ClutterStage *stage);
gboolean _clutter_stage_has_full_redraw_queued (ClutterStage *stage);
-void _clutter_stage_set_pick_buffer_valid (ClutterStage *stage,
- gboolean valid,
- ClutterPickMode mode);
-gboolean _clutter_stage_get_pick_buffer_valid (ClutterStage *stage,
- ClutterPickMode mode);
-void _clutter_stage_increment_picks_per_frame_counter (ClutterStage *stage);
-void _clutter_stage_reset_picks_per_frame_counter (ClutterStage *stage);
-guint _clutter_stage_get_picks_per_frame_counter (ClutterStage *stage);
+
+ClutterActor *_clutter_stage_do_pick (ClutterStage *stage,
+ gint x,
+ gint y,
+ ClutterPickMode mode);
ClutterPaintVolume *_clutter_stage_paint_volume_stack_allocate (ClutterStage *stage);
void _clutter_stage_paint_volume_stack_free_all (ClutterStage *stage);