Mir
Typedefs | Functions
mir_display_configuration.h File Reference
#include "client_types.h"
Include dependency graph for mir_display_configuration.h:
This graph shows which files directly or indirectly include this file:

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) __attribute__((deprecated("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...
 
MirOutputmir_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) __attribute__((deprecated("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...
 
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 *client_output)
 Gets if the platform supports gamma correction. More...
 
uint32_t mir_output_get_gamma_size (MirOutput const *client_output)
 Gets the gamma size. More...
 
void mir_output_get_gamma (MirOutput const *client_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 *client_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-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017