2012-12-19 11:37:02 +00:00
|
|
|
#ifndef __GDK_BROADWAY_SERVER__
|
|
|
|
#define __GDK_BROADWAY_SERVER__
|
|
|
|
|
|
|
|
#include <gdk/gdktypes.h>
|
2012-12-20 12:07:29 +00:00
|
|
|
#include "broadway-protocol.h"
|
2012-12-19 11:37:02 +00:00
|
|
|
|
|
|
|
typedef struct _GdkBroadwayServer GdkBroadwayServer;
|
|
|
|
typedef struct _GdkBroadwayServerClass GdkBroadwayServerClass;
|
|
|
|
|
|
|
|
#define GDK_TYPE_BROADWAY_SERVER (gdk_broadway_server_get_type())
|
|
|
|
#define GDK_BROADWAY_SERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_BROADWAY_SERVER, GdkBroadwayServer))
|
|
|
|
#define GDK_BROADWAY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_BROADWAY_SERVER, GdkBroadwayServerClass))
|
|
|
|
#define GDK_IS_BROADWAY_SERVER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_BROADWAY_SERVER))
|
|
|
|
#define GDK_IS_BROADWAY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_BROADWAY_SERVER))
|
|
|
|
#define GDK_BROADWAY_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_BROADWAY_SERVER, GdkBroadwayServerClass))
|
|
|
|
|
2019-03-29 10:03:38 +00:00
|
|
|
GdkBroadwayServer *_gdk_broadway_server_new (GdkDisplay *display,
|
|
|
|
const char *display_name,
|
2012-12-19 11:37:02 +00:00
|
|
|
GError **error);
|
|
|
|
void _gdk_broadway_server_flush (GdkBroadwayServer *server);
|
|
|
|
void _gdk_broadway_server_sync (GdkBroadwayServer *server);
|
2017-11-23 09:22:23 +00:00
|
|
|
void _gdk_broadway_server_roundtrip (GdkBroadwayServer *server,
|
|
|
|
gint32 id,
|
|
|
|
guint32 tag);
|
2012-12-19 11:37:02 +00:00
|
|
|
gulong _gdk_broadway_server_get_next_serial (GdkBroadwayServer *server);
|
|
|
|
guint32 _gdk_broadway_server_get_last_seen_time (GdkBroadwayServer *server);
|
|
|
|
gboolean _gdk_broadway_server_lookahead_event (GdkBroadwayServer *server,
|
|
|
|
const char *types);
|
|
|
|
void _gdk_broadway_server_query_mouse (GdkBroadwayServer *server,
|
2017-12-05 13:38:57 +00:00
|
|
|
guint32 *surface,
|
2012-12-21 23:02:55 +00:00
|
|
|
gint32 *root_x,
|
|
|
|
gint32 *root_y,
|
2012-12-19 11:37:02 +00:00
|
|
|
guint32 *mask);
|
|
|
|
GdkGrabStatus _gdk_broadway_server_grab_pointer (GdkBroadwayServer *server,
|
|
|
|
gint id,
|
|
|
|
gboolean owner_events,
|
|
|
|
guint32 event_mask,
|
|
|
|
guint32 time_);
|
|
|
|
guint32 _gdk_broadway_server_ungrab_pointer (GdkBroadwayServer *server,
|
|
|
|
guint32 time_);
|
2017-12-05 13:38:57 +00:00
|
|
|
gint32 _gdk_broadway_server_get_mouse_surface (GdkBroadwayServer *server);
|
|
|
|
guint32 _gdk_broadway_server_new_surface (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
gboolean is_temp);
|
2017-12-05 13:38:57 +00:00
|
|
|
void _gdk_broadway_server_destroy_surface (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id);
|
2017-12-05 13:38:57 +00:00
|
|
|
gboolean _gdk_broadway_server_surface_show (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id);
|
2017-12-05 13:38:57 +00:00
|
|
|
gboolean _gdk_broadway_server_surface_hide (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id);
|
2017-12-05 13:38:57 +00:00
|
|
|
void _gdk_broadway_server_surface_focus (GdkBroadwayServer *server,
|
2013-11-12 11:03:50 +00:00
|
|
|
gint id);
|
2017-12-05 13:38:57 +00:00
|
|
|
void _gdk_broadway_server_surface_set_transient_for (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id,
|
|
|
|
gint parent);
|
2013-11-13 11:20:07 +00:00
|
|
|
void _gdk_broadway_server_set_show_keyboard (GdkBroadwayServer *server,
|
|
|
|
gboolean show_keyboard);
|
2017-12-05 13:38:57 +00:00
|
|
|
gboolean _gdk_broadway_server_surface_translate (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id,
|
|
|
|
cairo_region_t *area,
|
|
|
|
gint dx,
|
|
|
|
gint dy);
|
2017-11-17 15:40:06 +00:00
|
|
|
guint32 gdk_broadway_server_upload_texture (GdkBroadwayServer *server,
|
|
|
|
GdkTexture *texture);
|
|
|
|
void gdk_broadway_server_release_texture (GdkBroadwayServer *server,
|
|
|
|
guint32 id);
|
2017-12-05 13:38:57 +00:00
|
|
|
void gdk_broadway_server_surface_set_nodes (GdkBroadwayServer *server,
|
2017-11-21 18:33:12 +00:00
|
|
|
guint32 id,
|
|
|
|
GArray *nodes);
|
2017-12-05 13:38:57 +00:00
|
|
|
gboolean _gdk_broadway_server_surface_move_resize (GdkBroadwayServer *server,
|
2012-12-19 11:37:02 +00:00
|
|
|
gint id,
|
2013-01-08 16:33:29 +00:00
|
|
|
gboolean with_move,
|
2012-12-19 11:37:02 +00:00
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
#endif /* __GDK_BROADWAY_SERVER__ */
|