2012-12-19 11:37:02 +00:00
|
|
|
#ifndef __BROADWAY_H__
|
|
|
|
#define __BROADWAY_H__
|
|
|
|
|
2011-03-10 13:58:47 +00:00
|
|
|
#include <glib.h>
|
2011-04-18 17:52:05 +00:00
|
|
|
#include <gio/gio.h>
|
2012-12-21 23:02:55 +00:00
|
|
|
#include "broadway-protocol.h"
|
2017-11-29 18:08:37 +00:00
|
|
|
#include "broadway-server.h"
|
2011-03-10 13:58:47 +00:00
|
|
|
|
2010-11-24 20:40:25 +00:00
|
|
|
typedef struct BroadwayOutput BroadwayOutput;
|
2010-11-16 11:42:53 +00:00
|
|
|
|
2011-11-10 09:12:28 +00:00
|
|
|
typedef enum {
|
|
|
|
BROADWAY_WS_CONTINUATION = 0,
|
|
|
|
BROADWAY_WS_TEXT = 1,
|
|
|
|
BROADWAY_WS_BINARY = 2,
|
|
|
|
BROADWAY_WS_CNX_CLOSE = 8,
|
|
|
|
BROADWAY_WS_CNX_PING = 9,
|
|
|
|
BROADWAY_WS_CNX_PONG = 0xa
|
|
|
|
} BroadwayWSOpCode;
|
|
|
|
|
2011-04-18 17:52:05 +00:00
|
|
|
BroadwayOutput *broadway_output_new (GOutputStream *out,
|
2013-09-25 15:59:40 +00:00
|
|
|
guint32 serial);
|
2010-11-24 21:12:29 +00:00
|
|
|
void broadway_output_free (BroadwayOutput *output);
|
|
|
|
int broadway_output_flush (BroadwayOutput *output);
|
|
|
|
int broadway_output_has_error (BroadwayOutput *output);
|
2013-03-28 21:57:33 +00:00
|
|
|
void broadway_output_set_next_serial (BroadwayOutput *output,
|
|
|
|
guint32 serial);
|
2011-03-10 13:58:47 +00:00
|
|
|
guint32 broadway_output_get_next_serial (BroadwayOutput *output);
|
2010-11-24 20:40:25 +00:00
|
|
|
void broadway_output_new_surface (BroadwayOutput *output,
|
2010-11-16 11:42:53 +00:00
|
|
|
int id,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int w,
|
2011-04-05 10:27:43 +00:00
|
|
|
int h,
|
|
|
|
gboolean is_temp);
|
2013-03-28 21:57:33 +00:00
|
|
|
void broadway_output_disconnected (BroadwayOutput *output);
|
2010-11-24 20:40:25 +00:00
|
|
|
void broadway_output_show_surface (BroadwayOutput *output,
|
2010-11-16 11:42:53 +00:00
|
|
|
int id);
|
2010-11-24 20:40:25 +00:00
|
|
|
void broadway_output_hide_surface (BroadwayOutput *output,
|
2010-11-16 11:42:53 +00:00
|
|
|
int id);
|
2013-11-12 11:23:58 +00:00
|
|
|
void broadway_output_raise_surface (BroadwayOutput *output,
|
|
|
|
int id);
|
|
|
|
void broadway_output_lower_surface (BroadwayOutput *output,
|
|
|
|
int id);
|
2010-11-24 20:40:25 +00:00
|
|
|
void broadway_output_destroy_surface (BroadwayOutput *output,
|
2010-11-16 11:42:53 +00:00
|
|
|
int id);
|
2017-11-23 09:22:23 +00:00
|
|
|
void broadway_output_roundtrip (BroadwayOutput *output,
|
|
|
|
int id,
|
|
|
|
guint32 tag);
|
2011-04-12 09:11:36 +00:00
|
|
|
void broadway_output_move_resize_surface (BroadwayOutput *output,
|
|
|
|
int id,
|
|
|
|
gboolean has_pos,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
gboolean has_size,
|
|
|
|
int w,
|
|
|
|
int h);
|
2011-04-05 10:02:46 +00:00
|
|
|
void broadway_output_set_transient_for (BroadwayOutput *output,
|
|
|
|
int id,
|
|
|
|
int parent_id);
|
2017-11-21 18:33:12 +00:00
|
|
|
void broadway_output_window_set_nodes (BroadwayOutput *output,
|
|
|
|
int id,
|
2017-11-29 19:05:02 +00:00
|
|
|
BroadwayNode *root,
|
|
|
|
BroadwayNode *old_root);
|
2017-11-18 16:36:38 +00:00
|
|
|
void broadway_output_upload_texture (BroadwayOutput *output,
|
|
|
|
guint32 id,
|
|
|
|
GBytes *texture);
|
|
|
|
void broadway_output_release_texture (BroadwayOutput *output,
|
|
|
|
guint32 id);
|
2011-04-01 14:29:03 +00:00
|
|
|
void broadway_output_grab_pointer (BroadwayOutput *output,
|
2011-03-14 10:46:43 +00:00
|
|
|
int id,
|
2011-04-01 14:29:03 +00:00
|
|
|
gboolean owner_event);
|
|
|
|
guint32 broadway_output_ungrab_pointer (BroadwayOutput *output);
|
2011-11-10 09:12:28 +00:00
|
|
|
void broadway_output_pong (BroadwayOutput *output);
|
2013-11-13 11:20:07 +00:00
|
|
|
void broadway_output_set_show_keyboard (BroadwayOutput *output,
|
|
|
|
gboolean show);
|
2012-12-19 11:37:02 +00:00
|
|
|
|
|
|
|
#endif /* __BROADWAY_H__ */
|