Mir
|
Go to the source code of this file.
Typedefs | |
typedef struct MirOutputMode | MirOutputMode |
A descriptor for a display mode. More... | |
Functions | |
void | mir_display_config_release (MirDisplayConfig *config) |
Release resources associated with a MirDisplayConfig handle. More... | |
int | mir_display_config_get_max_simultaneous_outputs (MirDisplayConfig const *config) MIR_FOR_REMOVAL_IN_VERSION_1("Not accurate in Mir 0.26 and later. May be removed in future.") |
Get the maximum possible number of simultaneously active outputs this system supports. More... | |
int | mir_display_config_get_num_outputs (MirDisplayConfig const *config) |
Get the number of outputs available in this display configuration. More... | |
MirOutput const * | mir_display_config_get_output (MirDisplayConfig const *config, size_t index) |
Get a read-only handle to the index 'th output of this configuration. More... | |
MirOutput * | mir_display_config_get_mutable_output (MirDisplayConfig *config, size_t index) |
Get a modifyable handle to the index 'th output of this configuration. More... | |
int | mir_output_get_num_modes (MirOutput const *output) |
Get the number of modes in the supported mode list of this output. More... | |
MirOutputMode const * | mir_output_get_mode (MirOutput const *output, size_t index) |
Get a handle for a mode descriptor from the list of supported modes. More... | |
MirOutputMode const * | mir_output_get_preferred_mode (MirOutput const *output) |
Get a handle to the output's preferred mode. More... | |
size_t | mir_output_get_preferred_mode_index (MirOutput const *output) |
Get the index of the output's preferred mode. More... | |
MirOutputMode const * | mir_output_get_current_mode (MirOutput const *output) |
Get a handle to the output's current mode. More... | |
size_t | mir_output_get_current_mode_index (MirOutput const *output) |
Get the index of to the output's current mode. More... | |
void | mir_output_set_current_mode (MirOutput *output, MirOutputMode const *mode) |
Set the current mode of an output. More... | |
int | mir_output_get_num_pixel_formats (MirOutput const *output) |
Get the number of pixel formats supported by this output. More... | |
MirPixelFormat | mir_output_get_pixel_format (MirOutput const *output, size_t index) |
Get a pixel format from the list of supported formats. More... | |
MirPixelFormat | mir_output_get_current_pixel_format (MirOutput const *output) |
Get the current pixel format. More... | |
void | mir_output_set_pixel_format (MirOutput *output, MirPixelFormat format) |
Set the output format. More... | |
int | mir_output_get_id (MirOutput const *output) |
Get the ID of an output. More... | |
MirOutputType | mir_output_get_type (MirOutput const *output) |
Get the physical connection type of an output. More... | |
char const * | mir_display_output_type_name (MirDisplayOutputType type) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_output_type_name instead") |
Get the textual name of an output type. More... | |
char const * | mir_output_type_name (MirOutputType type) |
Get the textual name of an output type. More... | |
int | mir_output_get_position_x (MirOutput const *output) |
Get the x coordinate of the top-left point of the output in the virtual display space. More... | |
int | mir_output_get_position_y (MirOutput const *output) |
Get the y coordinate of the top-left point of the output in the virtual display space. More... | |
unsigned int | mir_output_get_logical_width (MirOutput const *output) |
Get the width of the virtual display space occupied by an output. More... | |
unsigned int | mir_output_get_logical_height (MirOutput const *output) |
Get the height of the virtual display space occupied by an output. More... | |
void | mir_output_set_logical_size (MirOutput *output, unsigned w, unsigned h) |
Set the logical size of the virtual display space occupied by an output. More... | |
bool | mir_output_has_custom_logical_size (MirOutput const *output) |
void | mir_output_set_position (MirOutput *output, int x, int y) |
Set the coordinates of the top-left point of the output in the virtual display space. More... | |
MirOutputConnectionState | mir_output_get_connection_state (MirOutput const *output) |
Get whether there is a display physically connected to the output. More... | |
bool | mir_output_is_enabled (MirOutput const *output) |
Get whether this output is enabled in the current configuration. More... | |
void | mir_output_enable (MirOutput *output) |
Enable this output. More... | |
void | mir_output_disable (MirOutput *output) |
Disable this output. More... | |
char const * | mir_output_get_model (MirOutput const *output) |
Get a descriptive manufacturer/model string for the connected display. More... | |
int | mir_output_get_physical_width_mm (MirOutput const *output) |
Get the physical width of the connected display, in millimetres. More... | |
int | mir_output_get_physical_height_mm (MirOutput const *output) |
Get the physical height of the connected display, in millimetres. More... | |
MirPowerMode | mir_output_get_power_mode (MirOutput const *output) |
Get the power state of a connected display. More... | |
void | mir_output_set_power_mode (MirOutput *output, MirPowerMode mode) |
Set the power state of a connected display. More... | |
MirOrientation | mir_output_get_orientation (MirOutput const *output) |
Get the orientation of a display. More... | |
void | mir_output_set_orientation (MirOutput *output, MirOrientation orientation) |
Set the orientation of a display. More... | |
float | mir_output_get_scale_factor (MirOutput const *output) |
Get the scale-factor of a display. More... | |
MirSubpixelArrangement | mir_output_get_subpixel_arrangement (MirOutput const *output) |
Get the subpixel arrangement of a display. More... | |
MirFormFactor | mir_output_get_form_factor (MirOutput const *output) |
Get the form-factor of a connected output. More... | |
bool | mir_output_is_gamma_supported (MirOutput const *output) |
Gets if the platform supports gamma correction. More... | |
uint32_t | mir_output_get_gamma_size (MirOutput const *output) |
Gets the gamma size. More... | |
void | mir_output_get_gamma (MirOutput const *output, uint16_t *red, uint16_t *green, uint16_t *blue, uint32_t size) |
Get the gamma ramp of a display. More... | |
void | mir_output_set_gamma (MirOutput *output, uint16_t const *red, uint16_t const *green, uint16_t const *blue, uint32_t size) |
Set the gamma ramp of a display. More... | |
void | mir_output_set_scale_factor (MirOutput *output, float scale) |
Set the scale-factor of a display. More... | |
uint8_t const * | mir_output_get_edid (MirOutput const *output) |
Get the raw EDID data of a display. More... | |
size_t | mir_output_get_edid_size (MirOutput const *output) |
Get the size of the EDID of this display. More... | |
int | mir_output_mode_get_width (MirOutputMode const *mode) |
Get the width, in pixels, of a MirOutputMode. More... | |
int | mir_output_mode_get_height (MirOutputMode const *mode) |
Get the height, in pixels, of a MirOutputMode. More... | |
double | mir_output_mode_get_refresh_rate (MirOutputMode const *mode) |
Get the refresh rate, in Hz, of a MirOutputMode. More... | |
Copyright © 2012-2022
Canonical Ltd.
Generated on Fri Dec 9 06:40:35 UTC 2022
This documentation is licensed under the GPL version 2 or 3.