mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
03d6d272f7
surface->x/y (and various x,y arguments) should be in the parent coordinates, so treat it as such. We also keep track of the root coords as these are needed for popup positioning. Also, drop the isTemp property server side and the weird initial placement at (100, 100) in the daemon. We now fully control window placement from the client instead. If this is not we want we should do a serious design for that but until then lets do the simplest thing.
78 lines
4.6 KiB
C
78 lines
4.6 KiB
C
#ifndef __BROADWAY_H__
|
|
#define __BROADWAY_H__
|
|
|
|
#include <glib.h>
|
|
#include <gio/gio.h>
|
|
#include "broadway-protocol.h"
|
|
#include "broadway-server.h"
|
|
|
|
typedef struct BroadwayOutput BroadwayOutput;
|
|
|
|
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;
|
|
|
|
BroadwayOutput *broadway_output_new (GOutputStream *out,
|
|
guint32 serial);
|
|
void broadway_output_free (BroadwayOutput *output);
|
|
int broadway_output_flush (BroadwayOutput *output);
|
|
int broadway_output_has_error (BroadwayOutput *output);
|
|
void broadway_output_set_next_serial (BroadwayOutput *output,
|
|
guint32 serial);
|
|
guint32 broadway_output_get_next_serial (BroadwayOutput *output);
|
|
void broadway_output_new_surface (BroadwayOutput *output,
|
|
int id,
|
|
int x,
|
|
int y,
|
|
int w,
|
|
int h);
|
|
void broadway_output_disconnected (BroadwayOutput *output);
|
|
void broadway_output_show_surface (BroadwayOutput *output,
|
|
int id);
|
|
void broadway_output_hide_surface (BroadwayOutput *output,
|
|
int id);
|
|
void broadway_output_raise_surface (BroadwayOutput *output,
|
|
int id);
|
|
void broadway_output_lower_surface (BroadwayOutput *output,
|
|
int id);
|
|
void broadway_output_destroy_surface (BroadwayOutput *output,
|
|
int id);
|
|
void broadway_output_roundtrip (BroadwayOutput *output,
|
|
int id,
|
|
guint32 tag);
|
|
void broadway_output_move_resize_surface (BroadwayOutput *output,
|
|
int id,
|
|
gboolean has_pos,
|
|
int x,
|
|
int y,
|
|
gboolean has_size,
|
|
int w,
|
|
int h);
|
|
void broadway_output_set_transient_for (BroadwayOutput *output,
|
|
int id,
|
|
int parent_id);
|
|
void broadway_output_surface_set_nodes (BroadwayOutput *output,
|
|
int id,
|
|
BroadwayNode *root,
|
|
BroadwayNode *old_root,
|
|
GHashTable *old_node_lookup);
|
|
void broadway_output_upload_texture (BroadwayOutput *output,
|
|
guint32 id,
|
|
GBytes *texture);
|
|
void broadway_output_release_texture (BroadwayOutput *output,
|
|
guint32 id);
|
|
void broadway_output_grab_pointer (BroadwayOutput *output,
|
|
int id,
|
|
gboolean owner_event);
|
|
guint32 broadway_output_ungrab_pointer (BroadwayOutput *output);
|
|
void broadway_output_pong (BroadwayOutput *output);
|
|
void broadway_output_set_show_keyboard (BroadwayOutput *output,
|
|
gboolean show);
|
|
|
|
#endif /* __BROADWAY_H__ */
|