Functions
zwlr_output_manager_v1_add_listener ()
int
zwlr_output_manager_v1_add_listener (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
,
const struct zwlr_output_manager_v1_listener *listener
,
void *data
);
zwlr_output_manager_v1_set_user_data ()
void
zwlr_output_manager_v1_set_user_data (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
,
void *user_data
);
zwlr_output_manager_v1_get_user_data ()
void *
zwlr_output_manager_v1_get_user_data (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
);
zwlr_output_manager_v1_get_version ()
uint32_t
zwlr_output_manager_v1_get_version (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
);
zwlr_output_manager_v1_destroy ()
void
zwlr_output_manager_v1_destroy (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
);
zwlr_output_manager_v1_create_configuration ()
struct zwlr_output_configuration_v1 *
zwlr_output_manager_v1_create_configuration
(struct zwlr_output_manager_v1 *zwlr_output_manager_v1
,
uint32_t serial
);
zwlr_output_manager_v1_stop ()
void
zwlr_output_manager_v1_stop (struct zwlr_output_manager_v1 *zwlr_output_manager_v1
);
zwlr_output_head_v1_add_listener ()
int
zwlr_output_head_v1_add_listener (struct zwlr_output_head_v1 *zwlr_output_head_v1
,
const struct zwlr_output_head_v1_listener *listener
,
void *data
);
zwlr_output_head_v1_set_user_data ()
void
zwlr_output_head_v1_set_user_data (struct zwlr_output_head_v1 *zwlr_output_head_v1
,
void *user_data
);
zwlr_output_head_v1_get_user_data ()
void *
zwlr_output_head_v1_get_user_data (struct zwlr_output_head_v1 *zwlr_output_head_v1
);
zwlr_output_head_v1_get_version ()
uint32_t
zwlr_output_head_v1_get_version (struct zwlr_output_head_v1 *zwlr_output_head_v1
);
zwlr_output_head_v1_destroy ()
void
zwlr_output_head_v1_destroy (struct zwlr_output_head_v1 *zwlr_output_head_v1
);
zwlr_output_mode_v1_add_listener ()
int
zwlr_output_mode_v1_add_listener (struct zwlr_output_mode_v1 *zwlr_output_mode_v1
,
const struct zwlr_output_mode_v1_listener *listener
,
void *data
);
zwlr_output_mode_v1_set_user_data ()
void
zwlr_output_mode_v1_set_user_data (struct zwlr_output_mode_v1 *zwlr_output_mode_v1
,
void *user_data
);
zwlr_output_mode_v1_get_user_data ()
void *
zwlr_output_mode_v1_get_user_data (struct zwlr_output_mode_v1 *zwlr_output_mode_v1
);
zwlr_output_mode_v1_get_version ()
uint32_t
zwlr_output_mode_v1_get_version (struct zwlr_output_mode_v1 *zwlr_output_mode_v1
);
zwlr_output_mode_v1_destroy ()
void
zwlr_output_mode_v1_destroy (struct zwlr_output_mode_v1 *zwlr_output_mode_v1
);
zwlr_output_configuration_v1_add_listener ()
int
zwlr_output_configuration_v1_add_listener
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
,
const struct zwlr_output_configuration_v1_listener *listener
,
void *data
);
zwlr_output_configuration_v1_set_user_data ()
void
zwlr_output_configuration_v1_set_user_data
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
,
void *user_data
);
zwlr_output_configuration_v1_get_user_data ()
void *
zwlr_output_configuration_v1_get_user_data
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
);
zwlr_output_configuration_v1_get_version ()
uint32_t
zwlr_output_configuration_v1_get_version
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
);
zwlr_output_configuration_v1_enable_head ()
struct zwlr_output_configuration_head_v1 *
zwlr_output_configuration_v1_enable_head
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
,
struct zwlr_output_head_v1 *head
);
zwlr_output_configuration_v1_disable_head ()
void
zwlr_output_configuration_v1_disable_head
(struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
,
struct zwlr_output_head_v1 *head
);
zwlr_output_configuration_v1_apply ()
void
zwlr_output_configuration_v1_apply (struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
);
zwlr_output_configuration_v1_test ()
void
zwlr_output_configuration_v1_test (struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
);
zwlr_output_configuration_v1_destroy ()
void
zwlr_output_configuration_v1_destroy (struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1
);
zwlr_output_configuration_head_v1_set_user_data ()
void
zwlr_output_configuration_head_v1_set_user_data
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
void *user_data
);
zwlr_output_configuration_head_v1_get_user_data ()
void *
zwlr_output_configuration_head_v1_get_user_data
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
);
zwlr_output_configuration_head_v1_get_version ()
uint32_t
zwlr_output_configuration_head_v1_get_version
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
);
zwlr_output_configuration_head_v1_destroy ()
void
zwlr_output_configuration_head_v1_destroy
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
);
zwlr_output_configuration_head_v1_set_mode ()
void
zwlr_output_configuration_head_v1_set_mode
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
struct zwlr_output_mode_v1 *mode
);
zwlr_output_configuration_head_v1_set_custom_mode ()
void
zwlr_output_configuration_head_v1_set_custom_mode
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
int32_t width
,
int32_t height
,
int32_t refresh
);
zwlr_output_configuration_head_v1_set_position ()
void
zwlr_output_configuration_head_v1_set_position
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
int32_t x
,
int32_t y
);
zwlr_output_configuration_head_v1_set_transform ()
void
zwlr_output_configuration_head_v1_set_transform
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
int32_t transform
);
zwlr_output_configuration_head_v1_set_scale ()
void
zwlr_output_configuration_head_v1_set_scale
(struct zwlr_output_configuration_head_v1 *zwlr_output_configuration_head_v1
,
wl_fixed_t scale
);
Types and Values
struct zwlr_output_manager_v1_listener
struct zwlr_output_manager_v1_listener {
/**
* introduce a new head
*
* This event introduces a new head.
*/
void (*head)(void *data,
struct zwlr_output_manager_v1 *zwlr_output_manager_v1,
struct zwlr_output_head_v1 *head);
/**
* sent all information about current configuration
*
* This event is sent after all information has been sent after
* binding to the output manager object and after any subsequent
* changes. This applies to child head and mode objects as well. In
* other words, this event is sent whenever a head or mode is
* created or destroyed and whenever one of their properties has
* been changed.
*
* This allows changes to the output configuration to be seen as
* atomic, even if they happen via multiple events.
*
* A serial is sent to be used in a future create_configuration
* request.
* @param serial current configuration serial
*/
void (*done)(void *data,
struct zwlr_output_manager_v1 *zwlr_output_manager_v1,
uint32_t serial);
/**
* the compositor has finished with the manager
*
* This event indicates that the compositor is done sending
* manager events. The compositor will destroy the object
* immediately after sending this event, so it will become invalid
* and the client should release any resources associated with it.
*/
void (*finished)(void *data,
struct zwlr_output_manager_v1 *zwlr_output_manager_v1);
};
ZWLR_OUTPUT_MANAGER_V1_CREATE_CONFIGURATION
#define ZWLR_OUTPUT_MANAGER_V1_CREATE_CONFIGURATION
ZWLR_OUTPUT_MANAGER_V1_STOP
#define ZWLR_OUTPUT_MANAGER_V1_STOP
ZWLR_OUTPUT_MANAGER_V1_HEAD_SINCE_VERSION
#define ZWLR_OUTPUT_MANAGER_V1_HEAD_SINCE_VERSION
ZWLR_OUTPUT_MANAGER_V1_DONE_SINCE_VERSION
#define ZWLR_OUTPUT_MANAGER_V1_DONE_SINCE_VERSION
ZWLR_OUTPUT_MANAGER_V1_FINISHED_SINCE_VERSION
#define ZWLR_OUTPUT_MANAGER_V1_FINISHED_SINCE_VERSION
ZWLR_OUTPUT_MANAGER_V1_CREATE_CONFIGURATION_SINCE_VERSION
#define ZWLR_OUTPUT_MANAGER_V1_CREATE_CONFIGURATION_SINCE_VERSION
ZWLR_OUTPUT_MANAGER_V1_STOP_SINCE_VERSION
#define ZWLR_OUTPUT_MANAGER_V1_STOP_SINCE_VERSION
struct zwlr_output_head_v1_listener
struct zwlr_output_head_v1_listener {
/**
* head name
*
* This event describes the head name.
*
* The naming convention is compositor defined, but limited to
* alphanumeric characters and dashes (-). Each name is unique
* among all wlr_output_head objects, but if a wlr_output_head
* object is destroyed the same name may be reused later. The names
* will also remain consistent across sessions with the same
* hardware and software configuration.
*
* Examples of names include 'HDMI-A-1', 'WL-1', 'X11-1', etc.
* However, do not assume that the name is a reflection of an
* underlying DRM connector, X11 connection, etc.
*
* If the compositor implements the xdg-output protocol and this
* head is enabled, the xdg_output.name event must report the same
* name.
*
* The name event is sent after a wlr_output_head object is
* created. This event is only sent once per object, and the name
* does not change over the lifetime of the wlr_output_head object.
*/
void (*name)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
const char *name);
/**
* head description
*
* This event describes a human-readable description of the head.
*
* The description is a UTF-8 string with no convention defined for
* its contents. Examples might include 'Foocorp 11" Display' or
* 'Virtual X11 output via :1'. However, do not assume that the
* name is a reflection of the make, model, serial of the
* underlying DRM connector or the display name of the underlying
* X11 connection, etc.
*
* If the compositor implements xdg-output and this head is
* enabled, the xdg_output.description must report the same
* description.
*
* The description event is sent after a wlr_output_head object is
* created. This event is only sent once per object, and the
* description does not change over the lifetime of the
* wlr_output_head object.
*/
void (*description)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
const char *description);
/**
* head physical size
*
* This event describes the physical size of the head. This event
* is only sent if the head has a physical size (e.g. is not a
* projector or a virtual device).
* @param width width in millimeters of the output
* @param height height in millimeters of the output
*/
void (*physical_size)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
int32_t width,
int32_t height);
/**
* introduce a mode
*
* This event introduces a mode for this head. It is sent once
* per supported mode.
*/
void (*mode)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
struct zwlr_output_mode_v1 *mode);
/**
* head is enabled or disabled
*
* This event describes whether the head is enabled. A disabled
* head is not mapped to a region of the global compositor space.
*
* When a head is disabled, some properties (current_mode,
* position, transform and scale) are irrelevant.
* @param enabled zero if disabled, non-zero if enabled
*/
void (*enabled)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
int32_t enabled);
/**
* current mode
*
* This event describes the mode currently in use for this head.
* It is only sent if the output is enabled.
*/
void (*current_mode)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
struct zwlr_output_mode_v1 *mode);
/**
* current position
*
* This events describes the position of the head in the global
* compositor space. It is only sent if the output is enabled.
* @param x x position within the global compositor space
* @param y y position within the global compositor space
*/
void (*position)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
int32_t x,
int32_t y);
/**
* current transformation
*
* This event describes the transformation currently applied to
* the head. It is only sent if the output is enabled.
*/
void (*transform)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
int32_t transform);
/**
* current scale
*
* This events describes the scale of the head in the global
* compositor space. It is only sent if the output is enabled.
*/
void (*scale)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1,
wl_fixed_t scale);
/**
* the head has been destroyed
*
* The compositor will destroy the object immediately after
* sending this event, so it will become invalid and the client
* should release any resources associated with it.
*/
void (*finished)(void *data,
struct zwlr_output_head_v1 *zwlr_output_head_v1);
};
ZWLR_OUTPUT_HEAD_V1_NAME_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_NAME_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_DESCRIPTION_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_DESCRIPTION_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_PHYSICAL_SIZE_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_PHYSICAL_SIZE_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_MODE_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_MODE_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_ENABLED_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_ENABLED_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_CURRENT_MODE_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_CURRENT_MODE_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_POSITION_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_POSITION_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_TRANSFORM_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_TRANSFORM_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_SCALE_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_SCALE_SINCE_VERSION
ZWLR_OUTPUT_HEAD_V1_FINISHED_SINCE_VERSION
#define ZWLR_OUTPUT_HEAD_V1_FINISHED_SINCE_VERSION
struct zwlr_output_mode_v1_listener
struct zwlr_output_mode_v1_listener {
/**
* mode size
*
* This event describes the mode size. The size is given in
* physical hardware units of the output device. This is not
* necessarily the same as the output size in the global compositor
* space. For instance, the output may be scaled or transformed.
* @param width width of the mode in hardware units
* @param height height of the mode in hardware units
*/
void (*size)(void *data,
struct zwlr_output_mode_v1 *zwlr_output_mode_v1,
int32_t width,
int32_t height);
/**
* mode refresh rate
*
* This event describes the mode's fixed vertical refresh rate.
* It is only sent if the mode has a fixed refresh rate.
* @param refresh vertical refresh rate in mHz
*/
void (*refresh)(void *data,
struct zwlr_output_mode_v1 *zwlr_output_mode_v1,
int32_t refresh);
/**
* mode is preferred
*
* This event advertises this mode as preferred.
*/
void (*preferred)(void *data,
struct zwlr_output_mode_v1 *zwlr_output_mode_v1);
/**
* the mode has been destroyed
*
* The compositor will destroy the object immediately after
* sending this event, so it will become invalid and the client
* should release any resources associated with it.
*/
void (*finished)(void *data,
struct zwlr_output_mode_v1 *zwlr_output_mode_v1);
};
ZWLR_OUTPUT_MODE_V1_SIZE_SINCE_VERSION
#define ZWLR_OUTPUT_MODE_V1_SIZE_SINCE_VERSION
ZWLR_OUTPUT_MODE_V1_REFRESH_SINCE_VERSION
#define ZWLR_OUTPUT_MODE_V1_REFRESH_SINCE_VERSION
ZWLR_OUTPUT_MODE_V1_PREFERRED_SINCE_VERSION
#define ZWLR_OUTPUT_MODE_V1_PREFERRED_SINCE_VERSION
ZWLR_OUTPUT_MODE_V1_FINISHED_SINCE_VERSION
#define ZWLR_OUTPUT_MODE_V1_FINISHED_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_ERROR_ENUM
#define ZWLR_OUTPUT_CONFIGURATION_V1_ERROR_ENUM
enum zwlr_output_configuration_v1_error
struct zwlr_output_configuration_v1_listener
struct zwlr_output_configuration_v1_listener {
/**
* configuration changes succeeded
*
* Sent after the compositor has successfully applied the changes
* or tested them.
*
* Upon receiving this event, the client should destroy this
* object.
*/
void (*succeeded)(void *data,
struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1);
/**
* configuration changes failed
*
* Sent if the compositor rejects the changes or failed to apply
* them. The compositor should revert any changes made by the apply
* request that triggered this event.
*
* Upon receiving this event, the client should destroy this
* object.
*/
void (*failed)(void *data,
struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1);
/**
* configuration has been cancelled
*
* Sent if the compositor cancels the configuration because the
* state of an output changed and the client has outdated
* information (e.g. after an output has been hotplugged).
*
* The client can create a new configuration with a newer serial
* and try again.
*
* Upon receiving this event, the client should destroy this
* object.
*/
void (*cancelled)(void *data,
struct zwlr_output_configuration_v1 *zwlr_output_configuration_v1);
};
ZWLR_OUTPUT_CONFIGURATION_V1_ENABLE_HEAD
#define ZWLR_OUTPUT_CONFIGURATION_V1_ENABLE_HEAD
ZWLR_OUTPUT_CONFIGURATION_V1_DISABLE_HEAD
#define ZWLR_OUTPUT_CONFIGURATION_V1_DISABLE_HEAD
ZWLR_OUTPUT_CONFIGURATION_V1_APPLY
#define ZWLR_OUTPUT_CONFIGURATION_V1_APPLY
ZWLR_OUTPUT_CONFIGURATION_V1_TEST
#define ZWLR_OUTPUT_CONFIGURATION_V1_TEST
ZWLR_OUTPUT_CONFIGURATION_V1_DESTROY
#define ZWLR_OUTPUT_CONFIGURATION_V1_DESTROY
ZWLR_OUTPUT_CONFIGURATION_V1_SUCCEEDED_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_SUCCEEDED_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_FAILED_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_FAILED_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_CANCELLED_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_CANCELLED_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_ENABLE_HEAD_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_ENABLE_HEAD_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_DISABLE_HEAD_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_DISABLE_HEAD_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_APPLY_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_APPLY_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_TEST_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_TEST_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_V1_DESTROY_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_V1_DESTROY_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_ERROR_ENUM
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_ERROR_ENUM
enum zwlr_output_configuration_head_v1_error
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_MODE
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_MODE
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_CUSTOM_MODE
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_CUSTOM_MODE
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_POSITION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_POSITION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_TRANSFORM
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_TRANSFORM
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_SCALE
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_SCALE
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_MODE_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_MODE_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_CUSTOM_MODE_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_CUSTOM_MODE_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_POSITION_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_POSITION_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_TRANSFORM_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_TRANSFORM_SINCE_VERSION
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_SCALE_SINCE_VERSION
#define ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_SET_SCALE_SINCE_VERSION
struct zwlr_output_configuration_head_v1
struct zwlr_output_configuration_head_v1;
struct zwlr_output_configuration_v1
struct zwlr_output_configuration_v1;
struct zwlr_output_head_v1
struct zwlr_output_head_v1;
struct zwlr_output_manager_v1
struct zwlr_output_manager_v1;
struct zwlr_output_mode_v1
struct zwlr_output_mode_v1;