2016-05-04 08:19:23 +00:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* 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_MUTTER_H__
|
|
|
|
#define __CLUTTER_MUTTER_H__
|
|
|
|
|
|
|
|
#define __CLUTTER_H_INSIDE__
|
|
|
|
|
|
|
|
#include "clutter-backend.h"
|
2021-05-10 14:13:25 +00:00
|
|
|
#include "clutter-damage-history.h"
|
2019-03-22 12:53:00 +00:00
|
|
|
#include "clutter-event-private.h"
|
2019-10-04 21:01:54 +00:00
|
|
|
#include "clutter-input-device-private.h"
|
2019-03-22 12:53:00 +00:00
|
|
|
#include "clutter-input-pointer-a11y-private.h"
|
2016-05-04 08:19:23 +00:00
|
|
|
#include "clutter-macros.h"
|
2019-03-22 12:53:00 +00:00
|
|
|
#include "clutter-private.h"
|
|
|
|
#include "clutter-stage-private.h"
|
Introduce regional stage rendering
Add support for drawing a stage using multiple framebuffers each making
up one part of the stage. This works by the stage backend
(ClutterStageWindow) providing a list of views which will be for
splitting up the stage in different regions.
A view layout, for now, is a set of rectangles. The stage window (i.e.
stage "backend" will use this information when drawing a frame, using
one framebuffer for each view. The scene graph is adapted to explictly
take a view when painting the stage. It will use this view, its
assigned framebuffer and layout to offset and clip the drawing
accordingly.
This effectively removes any notion of "stage framebuffer", since each
stage now may consist of multiple framebuffers. Therefore, API
involving this has been deprecated and made no-ops; namely
clutter_stage_ensure_context(). Callers are now assumed to either
always use a framebuffer reference explicitly, or push/pop the
framebuffer of a given view where the code has not yet changed to use
the explicit-buffer-using cogl API.
Currently only the nested X11 backend supports this mode fully, and the
per view framebuffers are all offscreen. Upon frame completion, it'll
blit each view's framebuffer onto the onscreen framebuffer before
swapping.
Other backends (X11 CM and native/KMS) are adapted to manage a
full-stage view. The X11 CM backend will continue to use this method,
while the native/KMS backend will be adopted to use multiple view
drawing.
https://bugzilla.gnome.org/show_bug.cgi?id=768976
2016-05-27 03:09:24 +00:00
|
|
|
#include "clutter-stage-view.h"
|
2016-05-20 08:43:26 +00:00
|
|
|
#include "cogl/clutter-stage-cogl.h"
|
2019-03-22 12:53:00 +00:00
|
|
|
#include "clutter/x11/clutter-backend-x11.h"
|
2016-05-04 08:19:23 +00:00
|
|
|
|
2020-03-04 20:42:52 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
GList * clutter_stage_peek_stage_views (ClutterStage *stage);
|
|
|
|
|
2020-06-25 14:00:15 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
gboolean clutter_actor_is_effectively_on_stage_view (ClutterActor *self,
|
|
|
|
ClutterStageView *view);
|
|
|
|
|
2018-05-22 21:01:54 +00:00
|
|
|
CLUTTER_EXPORT
|
2016-05-04 08:19:23 +00:00
|
|
|
void clutter_set_custom_backend_func (ClutterBackend *(* func) (void));
|
|
|
|
|
2018-05-22 21:01:54 +00:00
|
|
|
CLUTTER_EXPORT
|
2016-05-25 06:40:12 +00:00
|
|
|
int64_t clutter_stage_get_frame_counter (ClutterStage *stage);
|
|
|
|
|
2018-05-22 21:01:54 +00:00
|
|
|
CLUTTER_EXPORT
|
2017-05-16 15:09:27 +00:00
|
|
|
void clutter_stage_capture_into (ClutterStage *stage,
|
|
|
|
cairo_rectangle_int_t *rect,
|
2021-05-08 11:22:27 +00:00
|
|
|
float scale,
|
|
|
|
uint8_t *data,
|
|
|
|
int stride);
|
2017-05-16 15:09:27 +00:00
|
|
|
|
2021-01-27 22:14:29 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
void clutter_stage_capture_view_into (ClutterStage *stage,
|
|
|
|
ClutterStageView *view,
|
|
|
|
cairo_rectangle_int_t *rect,
|
|
|
|
uint8_t *data,
|
|
|
|
int stride);
|
|
|
|
|
2017-04-07 12:06:36 +00:00
|
|
|
CLUTTER_EXPORT
|
2020-04-10 10:33:35 +00:00
|
|
|
void clutter_stage_clear_stage_views (ClutterStage *stage);
|
2017-04-07 12:06:36 +00:00
|
|
|
|
2019-09-12 09:28:50 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
void clutter_stage_view_assign_next_scanout (ClutterStageView *stage_view,
|
|
|
|
CoglScanout *scanout);
|
|
|
|
|
2019-01-23 17:40:07 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
gboolean clutter_actor_has_damage (ClutterActor *actor);
|
|
|
|
|
2019-09-11 09:49:47 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
gboolean clutter_actor_has_transitions (ClutterActor *actor);
|
|
|
|
|
2020-08-12 16:06:32 +00:00
|
|
|
CLUTTER_EXPORT
|
2020-08-12 16:08:35 +00:00
|
|
|
ClutterFrameClock * clutter_actor_pick_frame_clock (ClutterActor *self,
|
|
|
|
ClutterActor **out_actor);
|
2020-08-11 09:27:18 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
gboolean clutter_seat_handle_event_post (ClutterSeat *seat,
|
|
|
|
const ClutterEvent *event);
|
2020-08-12 16:06:32 +00:00
|
|
|
|
2020-10-15 14:46:08 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
void clutter_stage_update_device (ClutterStage *stage,
|
|
|
|
ClutterInputDevice *device,
|
|
|
|
ClutterEventSequence *sequence,
|
|
|
|
graphene_point_t point,
|
|
|
|
uint32_t time,
|
|
|
|
ClutterActor *new_actor,
|
|
|
|
gboolean emit_crossing);
|
|
|
|
|
2020-10-15 14:39:00 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
void clutter_stage_get_device_coords (ClutterStage *stage,
|
|
|
|
ClutterInputDevice *device,
|
|
|
|
ClutterEventSequence *sequence,
|
|
|
|
graphene_point_t *coords);
|
2020-12-22 17:22:41 +00:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
void clutter_stage_repick_device (ClutterStage *stage,
|
|
|
|
ClutterInputDevice *device);
|
2020-10-15 14:39:00 +00:00
|
|
|
|
2016-05-04 08:19:23 +00:00
|
|
|
#undef __CLUTTER_H_INSIDE__
|
|
|
|
|
|
|
|
#endif /* __CLUTTER_MUTTER_H__ */
|