FdRRConfig

FdRRConfig

Functions

Description

Functions

fd_rr_output_info_get_name ()

char *
fd_rr_output_info_get_name (FdRROutputInfo *self);

Returns

the output name.

[transfer none]


fd_rr_output_info_is_active ()

gboolean
fd_rr_output_info_is_active (FdRROutputInfo *self);

Returns

whether there is a CRTC assigned to this output (i.e. a signal is being sent to it)


fd_rr_output_info_set_active ()

void
fd_rr_output_info_set_active (FdRROutputInfo *self,
                              gboolean active);

fd_rr_output_info_get_geometry ()

void
fd_rr_output_info_get_geometry (FdRROutputInfo *self,
                                int *x,
                                int *y,
                                int *width,
                                int *height);

Get the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it returns the geometry for the complete monitor.

Parameters

self

a FdRROutputInfo

 

x

.

[out][allow-none]

y

.

[out][allow-none]

width

.

[out][allow-none]

height

.

[out][allow-none]

fd_rr_output_info_set_geometry ()

void
fd_rr_output_info_set_geometry (FdRROutputInfo *self,
                                int x,
                                int y,
                                int width,
                                int height);

Set the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it sets the geometry for the complete monitor.

Parameters

self

a FdRROutputInfo

 

x

x offset for monitor

 

y

y offset for monitor

 

width

monitor width

 

height

monitor height

 

fd_rr_output_info_get_refresh_rate ()

int
fd_rr_output_info_get_refresh_rate (FdRROutputInfo *self);

fd_rr_output_info_set_refresh_rate ()

void
fd_rr_output_info_set_refresh_rate (FdRROutputInfo *self,
                                    int rate);

fd_rr_output_info_get_rotation ()

FdRRRotation
fd_rr_output_info_get_rotation (FdRROutputInfo *self);

fd_rr_output_info_set_rotation ()

void
fd_rr_output_info_set_rotation (FdRROutputInfo *self,
                                FdRRRotation rotation);

fd_rr_output_info_supports_rotation ()

gboolean
fd_rr_output_info_supports_rotation (FdRROutputInfo *self,
                                     FdRRRotation rotation);

fd_rr_output_info_is_connected ()

gboolean
fd_rr_output_info_is_connected (FdRROutputInfo *self);

Returns

whether the output is physically connected to a monitor


fd_rr_output_info_get_vendor ()

const char *
fd_rr_output_info_get_vendor (FdRROutputInfo *self);

Parameters

self

a FdRROutputInfo

 

fd_rr_output_info_get_product ()

const char *
fd_rr_output_info_get_product (FdRROutputInfo *self);

fd_rr_output_info_get_serial ()

const char *
fd_rr_output_info_get_serial (FdRROutputInfo *self);

fd_rr_output_info_get_aspect_ratio ()

double
fd_rr_output_info_get_aspect_ratio (FdRROutputInfo *self);

fd_rr_output_info_get_display_name ()

char *
fd_rr_output_info_get_display_name (FdRROutputInfo *self);

Returns

the display name of this output.

[transfer none]


fd_rr_output_info_get_primary ()

gboolean
fd_rr_output_info_get_primary (FdRROutputInfo *self);

fd_rr_output_info_set_primary ()

void
fd_rr_output_info_set_primary (FdRROutputInfo *self,
                               gboolean primary);

fd_rr_output_info_get_preferred_width ()

int
fd_rr_output_info_get_preferred_width (FdRROutputInfo *self);

fd_rr_output_info_get_preferred_height ()

int
fd_rr_output_info_get_preferred_height
                               (FdRROutputInfo *self);

fd_rr_output_info_get_underscanning ()

gboolean
fd_rr_output_info_get_underscanning (FdRROutputInfo *self);

fd_rr_output_info_set_underscanning ()

void
fd_rr_output_info_set_underscanning (FdRROutputInfo *self,
                                     gboolean underscanning);

fd_rr_output_info_is_primary_tile ()

gboolean
fd_rr_output_info_is_primary_tile (FdRROutputInfo *self);

Parameters

self

a FdRROutputInfo

 

Returns

TRUE if the specified output is connected to the primary tile of a monitor or to an untiled monitor, FALSE if the output is connected to a secondary tile.


fd_rr_config_new_current ()

FdRRConfig *
fd_rr_config_new_current (FdRRScreen *screen,
                          GError **error);

fd_rr_config_load_current ()

gboolean
fd_rr_config_load_current (FdRRConfig *self,
                           GError **error);

fd_rr_config_match ()

gboolean
fd_rr_config_match (FdRRConfig *config1,
                    FdRRConfig *config2);

fd_rr_config_equal ()

gboolean
fd_rr_config_equal (FdRRConfig *config1,
                    FdRRConfig *config2);

fd_rr_config_sanitize ()

void
fd_rr_config_sanitize (FdRRConfig *configuration);

fd_rr_config_ensure_primary ()

gboolean
fd_rr_config_ensure_primary (FdRRConfig *configuration);

fd_rr_config_apply ()

gboolean
fd_rr_config_apply (FdRRConfig *configuration,
                    FdRRScreen *screen,
                    GError **error);

fd_rr_config_apply_persistent ()

gboolean
fd_rr_config_apply_persistent (FdRRConfig *configuration,
                               FdRRScreen *screen,
                               GError **error);

fd_rr_config_applicable ()

gboolean
fd_rr_config_applicable (FdRRConfig *configuration,
                         FdRRScreen *screen,
                         GError **error);

fd_rr_config_get_clone ()

gboolean
fd_rr_config_get_clone (FdRRConfig *configuration);

Returns

whether at least two outputs are at (0, 0) offset and they have the same width/height. Those outputs are of course connected and on (i.e. they have a CRTC assigned).


fd_rr_config_set_clone ()

void
fd_rr_config_set_clone (FdRRConfig *configuration,
                        gboolean clone);

fd_rr_config_get_outputs ()

FdRROutputInfo **
fd_rr_config_get_outputs (FdRRConfig *configuration);

Returns

the output configuration for this FdRRConfig.

[array zero-terminated=1][element-type FdDesktop.RROutputInfo][transfer none]