Documentation for <wlr/types/wlr_output_power_management_v1.h>

Back to index

Table of contents

struct wlr_output_power_manager_v1

struct wlr_output_power_manager_v1 {
	struct wl_global *global;
	struct wl_list output_powers; // wlr_output_power_v1.link
	
	struct wl_listener display_destroy;
	
	struct {
		struct wl_signal set_mode; // struct wlr_output_power_v1_set_mode_event
		struct wl_signal destroy;
	} events;
	
	void *data;
};

wlr_output_power_manager_v1_create()

struct wlr_output_power_manager_v1 *wlr_output_power_manager_v1_create(​struct wl_display *display);

struct wlr_output_power_v1

struct wlr_output_power_v1 {
	struct wl_resource *resource;
	struct wlr_output *output;
	struct wlr_output_power_manager_v1 *manager;
	struct wl_list link; // wlr_output_power_manager_v1.output_powers
	
	struct wl_listener output_destroy_listener;
	struct wl_listener output_commit_listener;
	
	void *data;
};

struct wlr_output_power_v1_set_mode_event

struct wlr_output_power_v1_set_mode_event {
	struct wlr_output *output;
	enum zwlr_output_power_v1_mode mode;
};