swayfx/sway/handlers.h

25 lines
987 B
C
Raw Normal View History

#ifndef _SWAY_HANDLERS_H
#define _SWAY_HANDLERS_H
#include <stdbool.h>
#include <wlc/wlc.h>
bool handle_output_created(wlc_handle output);
void handle_output_destroyed(wlc_handle output);
void handle_output_resolution_change(wlc_handle output, const struct wlc_size *from, const struct wlc_size *to);
2015-08-11 13:54:23 +10:00
void handle_output_focused(wlc_handle output, bool focus);
bool handle_view_created(wlc_handle view);
void handle_view_destroyed(wlc_handle view);
void handle_view_focus(wlc_handle view, bool focus);
2015-08-09 08:22:22 +10:00
void handle_view_geometry_request(wlc_handle view, const struct wlc_geometry* geometry);
2015-08-09 09:24:18 +10:00
bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers
*modifiers, uint32_t key, uint32_t sym, enum wlc_key_state state);
2015-08-09 23:23:10 +10:00
bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin);
bool handle_pointer_button(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers,
uint32_t button, enum wlc_button_state state);
#endif