mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
82d1e5a6ee
Clutter should just require that the windowing system used by a backend adds a device to the stage when the device enters, and removes it from the stage when the device leaves; with this information, we can synthesize every crossing event and update the device state without other intervention from the backend-specific code. The generation of additional crossing events for actors that are covering the stage at the coordinates of the crossing event should be delegated to the event processing code. The x11 and win32 backends need to be modified to relay the enter and leave events from the windowing system.
96 lines
5.6 KiB
C
96 lines
5.6 KiB
C
/*
|
|
* Clutter.
|
|
*
|
|
* An OpenGL based 'interactive canvas' library.
|
|
*
|
|
* Copyright (C) 2010 Intel Corporation.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __CLUTTER_STAGE_PRIVATE_H__
|
|
#define __CLUTTER_STAGE_PRIVATE_H__
|
|
|
|
#include <clutter/clutter-stage-window.h>
|
|
#include <clutter/clutter-stage.h>
|
|
#include <clutter/clutter-input-device.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _ClutterStageQueueRedrawEntry ClutterStageQueueRedrawEntry;
|
|
|
|
/* stage */
|
|
ClutterStageWindow *_clutter_stage_get_default_window (void);
|
|
void _clutter_stage_do_paint (ClutterStage *stage,
|
|
const ClutterGeometry *clip);
|
|
void _clutter_stage_set_window (ClutterStage *stage,
|
|
ClutterStageWindow *stage_window);
|
|
ClutterStageWindow *_clutter_stage_get_window (ClutterStage *stage);
|
|
void _clutter_stage_get_projection_matrix (ClutterStage *stage,
|
|
CoglMatrix *projection);
|
|
void _clutter_stage_dirty_projection (ClutterStage *stage);
|
|
void _clutter_stage_set_viewport (ClutterStage *stage,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height);
|
|
void _clutter_stage_get_viewport (ClutterStage *stage,
|
|
int *x,
|
|
int *y,
|
|
int *width,
|
|
int *height);
|
|
void _clutter_stage_dirty_viewport (ClutterStage *stage);
|
|
void _clutter_stage_maybe_setup_viewport (ClutterStage *stage);
|
|
void _clutter_stage_maybe_relayout (ClutterActor *stage);
|
|
gboolean _clutter_stage_needs_update (ClutterStage *stage);
|
|
gboolean _clutter_stage_do_update (ClutterStage *stage);
|
|
|
|
void _clutter_stage_queue_event (ClutterStage *stage,
|
|
ClutterEvent *event);
|
|
gboolean _clutter_stage_has_queued_events (ClutterStage *stage);
|
|
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);
|
|
|
|
ClutterPaintVolume *_clutter_stage_paint_volume_stack_allocate (ClutterStage *stage);
|
|
void _clutter_stage_paint_volume_stack_free_all (ClutterStage *stage);
|
|
|
|
const ClutterGeometry *_clutter_stage_get_clip (ClutterStage *stage);
|
|
|
|
ClutterStageQueueRedrawEntry *_clutter_stage_queue_actor_redraw (ClutterStage *stage,
|
|
ClutterStageQueueRedrawEntry *entry,
|
|
ClutterActor *actor,
|
|
ClutterPaintVolume *clip);
|
|
void _clutter_stage_queue_redraw_entry_invalidate (ClutterStageQueueRedrawEntry *entry);
|
|
|
|
void _clutter_stage_add_device (ClutterStage *stage,
|
|
ClutterInputDevice *device);
|
|
void _clutter_stage_remove_device (ClutterStage *stage,
|
|
ClutterInputDevice *device);
|
|
gboolean _clutter_stage_has_device (ClutterStage *stage,
|
|
ClutterInputDevice *device);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __CLUTTER_STAGE_PRIVATE_H__ */
|