libgfx: drawing into pixel buffers in memory.
void heim_window_set_cursor(heim_window_t *win, uint32_t shape)
the pointer shape over the window's content (HEIM_CURSOR_).
Definition heimdall.c:479
bool heim_window_busy(const heim_window_t *win)
true from a commit until its HEIM_EV_FRAME: drawing then can be seen half done.
Definition heimdall.c:464
bool heim_pending(const heim_conn_t *conn)
true if a whole message is already read from the socket: the next heim_next_event returns at once.
Definition heimdall.c:227
gfx_buffer_t * heim_window_buffer(heim_window_t *win)
the buffer to draw into.
Definition heimdall.c:444
void heim_window_free(heim_window_t *win)
Definition heimdall.c:423
void heim_screen_size(const heim_conn_t *conn, int32_t *width, int32_t *height)
Definition heimdall.c:322
void heim_disconnect(heim_conn_t *conn)
close the connection.
Definition heimdall.c:298
void heim_window_set_title(heim_window_t *win, const char *title)
Definition heimdall.c:469
void heim_settings_changed(heim_conn_t *conn, const char *name)
tell all clients that the settings file name changed (after conf_save): each gets a HEIM_EV_SETTINGS ...
Definition heimdall.c:533
int heim_fd(const heim_conn_t *conn)
the connection's socket, to wait for events with poll() together with other files.
Definition heimdall.c:317
void heim_window_set_app(heim_window_t *win, const char *app)
name the program of a window, so the shell can show its icon (the id of its .app file: "idunn-gallery...
Definition heimdall.c:542
void heim_window_set_data(heim_window_t *win, void *data)
a pointer of the program's own for the window (NULL at first).
Definition heimdall.c:489
void heim_shell_quit(heim_conn_t *conn)
the shell ends the session: heimdalld stops and the text console comes back.
Definition heimdall.c:570
heim_window_t * heim_popup_new(heim_window_t *parent, int32_t width, int32_t height, uint32_t flags)
make a popup of parent (a menu, a popover; with HEIM_WINDOW_TOOLTIP a tooltip).
Definition heimdall.c:401
heim_window_t * heim_window_new(heim_conn_t *conn, int32_t width, int32_t height, const char *title, uint32_t flags)
make a window with a buffer of that size (its content, without the title bar).
Definition heimdall.c:395
void heim_clipboard_request(heim_conn_t *conn)
ask for the clipboard's text: it comes as a HEIM_EV_CLIPBOARD event.
Definition heimdall.c:525
void * heim_window_data(const heim_window_t *win)
Definition heimdall.c:494
void heim_window_place(heim_window_t *popup, gfx_rect_t r, uint32_t side, int32_t margin)
where a popup goes: next to the rect r of its parent's content, on a side (HEIM_SIDE_).
Definition heimdall.c:408
heim_conn_t * heim_connect(void)
connect to the window server.
Definition heimdall.c:255
bool heim_window_resize(heim_window_t *win, int32_t width, int32_t height)
a new buffer of another size (its pixels are transparent).
Definition heimdall.c:328
void heim_clipboard_set(heim_conn_t *conn, const char *text, size_t length)
put text on the clipboard (length 0 empties it).
Definition heimdall.c:499
void heim_shell_start(heim_conn_t *conn)
be the desktop shell: from now on HEIM_EV_WINDOW, HEIM_EV_WINDOW_APP and HEIM_EV_WINDOW_GONE tell abo...
Definition heimdall.c:552
void heim_shell_act(heim_conn_t *conn, uint32_t id, uint32_t action)
the shell does something to a window.
Definition heimdall.c:560
void heim_window_commit(heim_window_t *win, gfx_rect_t damage)
show a changed part of the buffer.
Definition heimdall.c:449
int heim_next_event(heim_conn_t *conn, heim_event_t *event, int timeout_ms)
the next event.
Definition heimdall.c:232
struct heim_window heim_window_t
Definition heimdall.h:29
struct heim_conn heim_conn_t
Definition heimdall.h:28
the messages between heimdalld (the window server) and its clients.
uint8_t flags
Definition idt.c:3
unsigned int uint32_t
Definition fb.h:17
NULL, size_t, ptrdiff_t, offsetof.
integer types of fixed width.
unsigned short uint16_t
Definition stdint.h:13
int int32_t
Definition stdint.h:14
char * clipboard
Definition heimdall.h:36
heim_msg_t msg
Definition heimdall.h:35
size_t clipboard_length
Definition heimdall.h:38
heim_window_t * window
Definition heimdall.h:34
uint16_t type
Definition heimdall.h:33
Definition heimdall_proto.h:149