Documentation for <wlr/types/wlr_ext_workspace_v1.h>

Back to index

Table of contents

struct wlr_ext_workspace_group_handle_v1

struct wlr_ext_workspace_group_handle_v1 {
	struct wlr_ext_workspace_manager_v1 *manager;
	uint32_t caps; // ext_workspace_group_handle_v1_group_capabilities
	struct {
		struct wl_signal destroy;
	} events;
	
	struct wl_list link; // wlr_ext_workspace_manager_v1.groups
	
	void *data;
	
	struct {
		struct wl_list outputs; // wlr_ext_workspace_v1_group_output.link
		struct wl_list resources; // wlr_ext_workspace_manager_v1_resource.link
	} WLR_PRIVATE;
};

wlr_ext_workspace_group_handle_v1_create()

struct wlr_ext_workspace_group_handle_v1 *wlr_ext_workspace_group_handle_v1_create(​struct wlr_ext_workspace_manager_v1 *manager, uint32_t caps);

wlr_ext_workspace_group_handle_v1_destroy()

void wlr_ext_workspace_group_handle_v1_destroy(​struct wlr_ext_workspace_group_handle_v1 *group);

wlr_ext_workspace_group_handle_v1_output_enter()

void wlr_ext_workspace_group_handle_v1_output_enter(​struct wlr_ext_workspace_group_handle_v1 *group, struct wlr_output *output);

wlr_ext_workspace_group_handle_v1_output_leave()

void wlr_ext_workspace_group_handle_v1_output_leave(​struct wlr_ext_workspace_group_handle_v1 *group, struct wlr_output *output);

struct wlr_ext_workspace_handle_v1

struct wlr_ext_workspace_handle_v1 {
	struct wlr_ext_workspace_manager_v1 *manager;
	struct wlr_ext_workspace_group_handle_v1 *group; // May be NULL
	char *id;
	char *name;
	struct wl_array coordinates;
	uint32_t caps; // ext_workspace_handle_v1_workspace_capabilities
	uint32_t state; // ext_workspace_handle_v1_state
	
	struct {
		struct wl_signal destroy;
	} events;
	
	struct wl_list link; // wlr_ext_workspace_manager_v1.workspaces
	
	void *data;
	
	struct {
		struct wl_list resources; // wlr_ext_workspace_v1_resource.link
	} WLR_PRIVATE;
};

wlr_ext_workspace_handle_v1_create()

struct wlr_ext_workspace_handle_v1 *wlr_ext_workspace_handle_v1_create(​struct wlr_ext_workspace_manager_v1 *manager, const char *id, uint32_t caps);

wlr_ext_workspace_handle_v1_destroy()

void wlr_ext_workspace_handle_v1_destroy(​struct wlr_ext_workspace_handle_v1 *workspace);

wlr_ext_workspace_handle_v1_set_active()

void wlr_ext_workspace_handle_v1_set_active(​struct wlr_ext_workspace_handle_v1 *workspace, bool enabled);

wlr_ext_workspace_handle_v1_set_coordinates()

void wlr_ext_workspace_handle_v1_set_coordinates(​struct wlr_ext_workspace_handle_v1 *workspace, const uint32_t *coords, size_t coords_len);

wlr_ext_workspace_handle_v1_set_group()

void wlr_ext_workspace_handle_v1_set_group(​struct wlr_ext_workspace_handle_v1 *workspace, struct wlr_ext_workspace_group_handle_v1 *group);

wlr_ext_workspace_handle_v1_set_hidden()

void wlr_ext_workspace_handle_v1_set_hidden(​struct wlr_ext_workspace_handle_v1 *workspace, bool enabled);

wlr_ext_workspace_handle_v1_set_name()

void wlr_ext_workspace_handle_v1_set_name(​struct wlr_ext_workspace_handle_v1 *workspace, const char *name);

wlr_ext_workspace_handle_v1_set_urgent()

void wlr_ext_workspace_handle_v1_set_urgent(​struct wlr_ext_workspace_handle_v1 *workspace, bool enabled);

struct wlr_ext_workspace_manager_v1

struct wlr_ext_workspace_manager_v1 {
	struct wl_global *global;
	struct wl_list groups; // wlr_ext_workspace_group_handle_v1.link
	struct wl_list workspaces; // wlr_ext_workspace_handle_v1.link
	
	struct {
		struct wl_signal commit; // wlr_ext_workspace_v1_commit_event
		struct wl_signal destroy;
	} events;
	
	void *data;
	
	struct {
		struct wl_list resources; // wlr_ext_workspace_manager_v1_resource.link
		struct wl_event_source *idle_source;
		struct wl_event_loop *event_loop;
		struct wl_listener display_destroy;
	} WLR_PRIVATE;
};

wlr_ext_workspace_manager_v1_create()

struct wlr_ext_workspace_manager_v1 *wlr_ext_workspace_manager_v1_create(​struct wl_display *display, uint32_t version);

struct wlr_ext_workspace_v1_commit_event

struct wlr_ext_workspace_v1_commit_event {
	struct wl_list *requests; // wlr_ext_workspace_v1_request.link
};

struct wlr_ext_workspace_v1_request

struct wlr_ext_workspace_v1_request {
	enum wlr_ext_workspace_v1_request_type type;
	struct wl_list link; // wlr_ext_workspace_manager_v1_resource.requests
	union {
		struct {
			char *name;
			struct wlr_ext_workspace_group_handle_v1 *group; // NULL if destroyed
		} create_workspace;
		struct {
			struct wlr_ext_workspace_handle_v1 *workspace; // NULL if destroyed
		} activate;
		struct {
			struct wlr_ext_workspace_handle_v1 *workspace; // NULL if destroyed
		} deactivate;
		struct {
			struct wlr_ext_workspace_handle_v1 *workspace; // NULL if destroyed
			struct wlr_ext_workspace_group_handle_v1 *group; // NULL if destroyed
		} assign;
		struct {
			struct wlr_ext_workspace_handle_v1 *workspace; // NULL if destroyed
		} remove;
	} ;
};

enum wlr_ext_workspace_v1_request_type

enum wlr_ext_workspace_v1_request_type {
	WLR_EXT_WORKSPACE_V1_REQUEST_CREATE_WORKSPACE,
	WLR_EXT_WORKSPACE_V1_REQUEST_ACTIVATE,
	WLR_EXT_WORKSPACE_V1_REQUEST_DEACTIVATE,
	WLR_EXT_WORKSPACE_V1_REQUEST_ASSIGN,
	WLR_EXT_WORKSPACE_V1_REQUEST_REMOVE,
};