mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
mate-rr.h File Reference
View source
#include <glib.h>
#include <gdk/gdk.h>
Include dependency graph for mate-rr.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  MateRRScreen
 
struct  MateRRScreenClass
 

Macros

#define MATE_RR_ERROR   (mate_rr_error_quark ())
 
#define MATE_RR_CONNECTOR_TYPE_PANEL   "Panel" /* This is a laptop's built-in LCD */
 
#define MATE_TYPE_RR_SCREEN   (mate_rr_screen_get_type())
 
#define MATE_RR_SCREEN(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_SCREEN, MateRRScreen))
 
#define MATE_IS_RR_SCREEN(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_SCREEN))
 
#define MATE_RR_SCREEN_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_SCREEN, MateRRScreenClass))
 
#define MATE_IS_RR_SCREEN_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_SCREEN))
 
#define MATE_RR_SCREEN_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_SCREEN, MateRRScreenClass))
 
#define MATE_TYPE_RR_OUTPUT   (mate_rr_output_get_type())
 
#define MATE_TYPE_RR_CRTC   (mate_rr_crtc_get_type())
 
#define MATE_TYPE_RR_MODE   (mate_rr_mode_get_type())
 

Typedefs

typedef struct MateRRScreenPrivate MateRRScreenPrivate
 
typedef struct MateRROutput MateRROutput
 
typedef struct MateRRCrtc MateRRCrtc
 
typedef struct MateRRMode MateRRMode
 

Enumerations

enum  MateRRRotation {
  MATE_RR_ROTATION_0 = (1 << 0) , MATE_RR_ROTATION_90 = (1 << 1) , MATE_RR_ROTATION_180 = (1 << 2) , MATE_RR_ROTATION_270 = (1 << 3) ,
  MATE_RR_REFLECT_X = (1 << 4) , MATE_RR_REFLECT_Y = (1 << 5)
}
 
enum  MateRRError {
  MATE_RR_ERROR_UNKNOWN , MATE_RR_ERROR_NO_RANDR_EXTENSION , MATE_RR_ERROR_RANDR_ERROR , MATE_RR_ERROR_BOUNDS_ERROR ,
  MATE_RR_ERROR_CRTC_ASSIGNMENT , MATE_RR_ERROR_NO_MATCHING_CONFIG
}
 

Functions

GQuark mate_rr_error_quark (void)
 
GType mate_rr_screen_get_type (void)
 
GType mate_rr_output_get_type (void)
 
GType mate_rr_crtc_get_type (void)
 
GType mate_rr_mode_get_type (void)
 
MateRRScreen * mate_rr_screen_new (GdkScreen *screen, GError **error)
 mate_rr_screen_new: @screen: the #GdkScreen on which to operate @error: will be set if XRandR is not supported
 
MateRROutput ** mate_rr_screen_list_outputs (MateRRScreen *screen)
 mate_rr_screen_list_outputs:
 
MateRRCrtc ** mate_rr_screen_list_crtcs (MateRRScreen *screen)
 mate_rr_screen_list_crtcs:
 
MateRRMode ** mate_rr_screen_list_modes (MateRRScreen *screen)
 mate_rr_screen_list_modes:
 
MateRRMode ** mate_rr_screen_list_clone_modes (MateRRScreen *screen)
 mate_rr_screen_list_clone_modes:
 
void mate_rr_screen_set_size (MateRRScreen *screen, int width, int height, int mm_width, int mm_height)
 
MateRRCrtc * mate_rr_screen_get_crtc_by_id (MateRRScreen *screen, guint32 id)
 mate_rr_screen_get_crtc_by_id:
 
gboolean mate_rr_screen_refresh (MateRRScreen *screen, GError **error)
 mate_rr_screen_refresh: @screen: a MateRRScreen @error: location to store error, or NULL
 
MateRROutput * mate_rr_screen_get_output_by_id (MateRRScreen *screen, guint32 id)
 mate_rr_screen_get_output_by_id:
 
MateRROutput * mate_rr_screen_get_output_by_name (MateRRScreen *screen, const char *name)
 
void mate_rr_screen_get_ranges (MateRRScreen *screen, int *min_width, int *max_width, int *min_height, int *max_height)
 mate_rr_screen_get_ranges: @screen: a MateRRScreen @min_width: (out): the minimum width @max_width: (out): the maximum width @min_height: (out): the minimum height @max_height: (out): the maximum height
 
void mate_rr_screen_get_timestamps (MateRRScreen *screen, guint32 *change_timestamp_ret, guint32 *config_timestamp_ret)
 mate_rr_screen_get_timestamps: @screen: a MateRRScreen @change_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last changed @config_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last obtained
 
void mate_rr_screen_set_primary_output (MateRRScreen *screen, MateRROutput *output)
 
guint32 mate_rr_output_get_id (MateRROutput *output)
 
const char * mate_rr_output_get_name (MateRROutput *output)
 
gboolean mate_rr_output_is_connected (MateRROutput *output)
 
int mate_rr_output_get_size_inches (MateRROutput *output)
 
int mate_rr_output_get_width_mm (MateRROutput *outout)
 
int mate_rr_output_get_height_mm (MateRROutput *output)
 
const guint8 * mate_rr_output_get_edid_data (MateRROutput *output)
 
MateRRCrtc ** mate_rr_output_get_possible_crtcs (MateRROutput *output)
 mate_rr_output_get_possible_crtcs: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):
 
MateRRMode * mate_rr_output_get_current_mode (MateRROutput *output)
 mate_rr_output_get_current_mode: @output: a MateRROutput Returns: (transfer none): the current mode of this output
 
MateRRCrtc * mate_rr_output_get_crtc (MateRROutput *output)
 mate_rr_output_get_crtc: @output: a MateRROutput Returns: (transfer none):
 
const char * mate_rr_output_get_connector_type (MateRROutput *output)
 
gboolean mate_rr_output_is_laptop (MateRROutput *output)
 
gboolean mate_rr_output_get_hotplug_mode_update (MateRROutput *output)
 mate_rr_output_get_hotplug_mode_update: @output: a MateRROutput
 
void mate_rr_output_get_position (MateRROutput *output, int *x, int *y)
 mate_rr_output_get_position: @output: a MateRROutput @x: (out) (allow-none): @y: (out) (allow-none):
 
gboolean mate_rr_output_can_clone (MateRROutput *output, MateRROutput *clone)
 
MateRRMode ** mate_rr_output_list_modes (MateRROutput *output)
 mate_rr_output_list_modes: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):
 
MateRRMode * mate_rr_output_get_preferred_mode (MateRROutput *output)
 mate_rr_output_get_preferred_mode: @output: a MateRROutput Returns: (transfer none):
 
gboolean mate_rr_output_supports_mode (MateRROutput *output, MateRRMode *mode)
 
gboolean mate_rr_output_get_is_primary (MateRROutput *output)
 
guint32 mate_rr_mode_get_id (MateRRMode *mode)
 
guint mate_rr_mode_get_width (MateRRMode *mode)
 
guint mate_rr_mode_get_height (MateRRMode *mode)
 
int mate_rr_mode_get_freq (MateRRMode *mode)
 
guint32 mate_rr_crtc_get_id (MateRRCrtc *crtc)
 
gboolean mate_rr_crtc_set_config (MateRRCrtc *crtc, int x, int y, MateRRMode *mode, MateRRRotation rotation, MateRROutput **outputs, int n_outputs, GError **error)
 
gboolean mate_rr_crtc_set_config_with_time (MateRRCrtc *crtc, guint32 timestamp, int x, int y, MateRRMode *mode, MateRRRotation rotation, MateRROutput **outputs, int n_outputs, GError **error)
 
gboolean mate_rr_crtc_can_drive_output (MateRRCrtc *crtc, MateRROutput *output)
 
MateRRMode * mate_rr_crtc_get_current_mode (MateRRCrtc *crtc)
 mate_rr_crtc_get_current_mode: @crtc: a MateRRCrtc Returns: (transfer none): the current mode of this crtc
 
void mate_rr_crtc_get_position (MateRRCrtc *crtc, int *x, int *y)
 mate_rr_crtc_get_position: @crtc: a MateRRCrtc @x: (out) (allow-none): @y: (out) (allow-none):
 
MateRRRotation mate_rr_crtc_get_current_rotation (MateRRCrtc *crtc)
 
MateRRRotation mate_rr_crtc_get_rotations (MateRRCrtc *crtc)
 
gboolean mate_rr_crtc_supports_rotation (MateRRCrtc *crtc, MateRRRotation rotation)
 
gboolean mate_rr_crtc_get_gamma (MateRRCrtc *crtc, int *size, unsigned short **red, unsigned short **green, unsigned short **blue)
 mate_rr_crtc_get_gamma: @crtc: a MateRRCrtc @size: @red: (out): the minimum width @green: (out): the maximum width @blue: (out): the minimum height
 
void mate_rr_crtc_set_gamma (MateRRCrtc *crtc, int size, unsigned short *red, unsigned short *green, unsigned short *blue)
 

Macro Definition Documentation

◆ MATE_IS_RR_SCREEN

#define MATE_IS_RR_SCREEN (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_SCREEN))

◆ MATE_IS_RR_SCREEN_CLASS

#define MATE_IS_RR_SCREEN_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_SCREEN))

◆ MATE_RR_CONNECTOR_TYPE_PANEL

#define MATE_RR_CONNECTOR_TYPE_PANEL   "Panel" /* This is a laptop's built-in LCD */

◆ MATE_RR_ERROR

#define MATE_RR_ERROR   (mate_rr_error_quark ())

◆ MATE_RR_SCREEN

#define MATE_RR_SCREEN (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_SCREEN, MateRRScreen))

◆ MATE_RR_SCREEN_CLASS

#define MATE_RR_SCREEN_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_SCREEN, MateRRScreenClass))

◆ MATE_RR_SCREEN_GET_CLASS

#define MATE_RR_SCREEN_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_SCREEN, MateRRScreenClass))

◆ MATE_TYPE_RR_CRTC

#define MATE_TYPE_RR_CRTC   (mate_rr_crtc_get_type())

◆ MATE_TYPE_RR_MODE

#define MATE_TYPE_RR_MODE   (mate_rr_mode_get_type())

◆ MATE_TYPE_RR_OUTPUT

#define MATE_TYPE_RR_OUTPUT   (mate_rr_output_get_type())

◆ MATE_TYPE_RR_SCREEN

#define MATE_TYPE_RR_SCREEN   (mate_rr_screen_get_type())

Typedef Documentation

◆ MateRRCrtc

typedef struct MateRRCrtc MateRRCrtc

◆ MateRRMode

typedef struct MateRRMode MateRRMode

◆ MateRROutput

typedef struct MateRROutput MateRROutput

◆ MateRRScreenPrivate

Enumeration Type Documentation

◆ MateRRError

Enumerator
MATE_RR_ERROR_UNKNOWN 
MATE_RR_ERROR_NO_RANDR_EXTENSION 
MATE_RR_ERROR_RANDR_ERROR 
MATE_RR_ERROR_BOUNDS_ERROR 
MATE_RR_ERROR_CRTC_ASSIGNMENT 
MATE_RR_ERROR_NO_MATCHING_CONFIG 

◆ MateRRRotation

Enumerator
MATE_RR_ROTATION_0 
MATE_RR_ROTATION_90 
MATE_RR_ROTATION_180 
MATE_RR_ROTATION_270 
MATE_RR_REFLECT_X 
MATE_RR_REFLECT_Y 

Function Documentation

◆ mate_rr_crtc_can_drive_output()

gboolean mate_rr_crtc_can_drive_output ( MateRRCrtc *  crtc,
MateRROutput *  output 
)

◆ mate_rr_crtc_get_current_mode()

MateRRMode * mate_rr_crtc_get_current_mode ( MateRRCrtc *  crtc)

mate_rr_crtc_get_current_mode: @crtc: a MateRRCrtc Returns: (transfer none): the current mode of this crtc

References MateRRCrtc::current_mode.

Referenced by crtc_assignment_apply(), mate_rr_config_load_current(), and mate_rr_output_get_current_mode().

◆ mate_rr_crtc_get_current_rotation()

MateRRRotation mate_rr_crtc_get_current_rotation ( MateRRCrtc *  crtc)

◆ mate_rr_crtc_get_gamma()

gboolean mate_rr_crtc_get_gamma ( MateRRCrtc *  crtc,
int *  size,
unsigned short **  red,
unsigned short **  green,
unsigned short **  blue 
)

mate_rr_crtc_get_gamma: @crtc: a MateRRCrtc @size: @red: (out): the minimum width @green: (out): the maximum width @blue: (out): the minimum height

Returns: TRUE for success

References DISPLAY, MateRRCrtc::gamma_size, and MateRRCrtc::id.

◆ mate_rr_crtc_get_id()

guint32 mate_rr_crtc_get_id ( MateRRCrtc *  crtc)

◆ mate_rr_crtc_get_position()

void mate_rr_crtc_get_position ( MateRRCrtc *  crtc,
int *  x,
int *  y 
)

mate_rr_crtc_get_position: @crtc: a MateRRCrtc @x: (out) (allow-none): @y: (out) (allow-none):

References MateRRCrtc::x, and MateRRCrtc::y.

Referenced by crtc_assignment_apply(), mate_rr_config_load_current(), and mate_rr_output_get_position().

◆ mate_rr_crtc_get_rotations()

MateRRRotation mate_rr_crtc_get_rotations ( MateRRCrtc *  crtc)

References MateRRCrtc::rotations.

◆ mate_rr_crtc_get_type()

GType mate_rr_crtc_get_type ( void  )

◆ mate_rr_crtc_set_config()

gboolean mate_rr_crtc_set_config ( MateRRCrtc *  crtc,
int  x,
int  y,
MateRRMode *  mode,
MateRRRotation  rotation,
MateRROutput **  outputs,
int  n_outputs,
GError **  error 
)

References mate_rr_crtc_set_config_with_time().

Here is the call graph for this function:

◆ mate_rr_crtc_set_config_with_time()

gboolean mate_rr_crtc_set_config_with_time ( MateRRCrtc *  crtc,
guint32  timestamp,
int  x,
int  y,
MateRRMode *  mode,
MateRRRotation  rotation,
MateRROutput **  outputs,
int  n_outputs,
GError **  error 
)

References DISPLAY, MateRRMode::height, MateRRCrtc::id, MateRRMode::id, MateRRCrtc::info, MATE_RR_ERROR, MATE_RR_ERROR_BOUNDS_ERROR, MATE_RR_ERROR_RANDR_ERROR, ScreenInfo::max_height, ScreenInfo::max_width, MateRRMode::width, and xrotation_from_rotation().

Referenced by configure_crtc(), crtc_assignment_apply(), and mate_rr_crtc_set_config().

Here is the call graph for this function:

◆ mate_rr_crtc_set_gamma()

void mate_rr_crtc_set_gamma ( MateRRCrtc *  crtc,
int  size,
unsigned short *  red,
unsigned short *  green,
unsigned short *  blue 
)

◆ mate_rr_crtc_supports_rotation()

gboolean mate_rr_crtc_supports_rotation ( MateRRCrtc *  crtc,
MateRRRotation  rotation 
)

References MateRRCrtc::rotations.

Referenced by crtc_assignment_assign().

◆ mate_rr_error_quark()

GQuark mate_rr_error_quark ( void  )

◆ mate_rr_mode_get_freq()

int mate_rr_mode_get_freq ( MateRRMode *  mode)

◆ mate_rr_mode_get_height()

◆ mate_rr_mode_get_id()

guint32 mate_rr_mode_get_id ( MateRRMode *  mode)

References MateRRMode::id.

Referenced by crtc_assignment_assign().

◆ mate_rr_mode_get_type()

GType mate_rr_mode_get_type ( void  )

◆ mate_rr_mode_get_width()

◆ mate_rr_output_can_clone()

gboolean mate_rr_output_can_clone ( MateRROutput *  output,
MateRROutput *  clone 
)

References MateRROutput::clones.

Referenced by can_clone().

◆ mate_rr_output_get_connector_type()

const char * mate_rr_output_get_connector_type ( MateRROutput *  output)

◆ mate_rr_output_get_crtc()

MateRRCrtc * mate_rr_output_get_crtc ( MateRROutput *  output)

mate_rr_output_get_crtc: @output: a MateRROutput Returns: (transfer none):

References MateRROutput::current_crtc.

Referenced by mate_rr_config_load_current(), mate_rr_output_get_current_mode(), and mate_rr_output_get_position().

◆ mate_rr_output_get_current_mode()

MateRRMode * mate_rr_output_get_current_mode ( MateRROutput *  output)

mate_rr_output_get_current_mode: @output: a MateRROutput Returns: (transfer none): the current mode of this output

References mate_rr_crtc_get_current_mode(), and mate_rr_output_get_crtc().

Here is the call graph for this function:

◆ mate_rr_output_get_edid_data()

const guint8 * mate_rr_output_get_edid_data ( MateRROutput *  output)

◆ mate_rr_output_get_height_mm()

int mate_rr_output_get_height_mm ( MateRROutput *  output)

◆ mate_rr_output_get_hotplug_mode_update()

gboolean mate_rr_output_get_hotplug_mode_update ( MateRROutput *  output)

mate_rr_output_get_hotplug_mode_update: @output: a MateRROutput

Returns whether the output has the hotplug_mode_update property, which indicates that the display should apply a new preferred mode on hotplug events to handle dynamic guest resizing in virtual machines.

Returns: TRUE if the output has hotplug_mode_update

References MateRROutput::hotplug_mode_update.

◆ mate_rr_output_get_id()

guint32 mate_rr_output_get_id ( MateRROutput *  output)

References MateRROutput::id.

◆ mate_rr_output_get_is_primary()

gboolean mate_rr_output_get_is_primary ( MateRROutput *  output)

◆ mate_rr_output_get_name()

const char * mate_rr_output_get_name ( MateRROutput *  output)

◆ mate_rr_output_get_position()

void mate_rr_output_get_position ( MateRROutput *  output,
int *  x,
int *  y 
)

mate_rr_output_get_position: @output: a MateRROutput @x: (out) (allow-none): @y: (out) (allow-none):

References mate_rr_crtc_get_position(), and mate_rr_output_get_crtc().

Here is the call graph for this function:

◆ mate_rr_output_get_possible_crtcs()

MateRRCrtc ** mate_rr_output_get_possible_crtcs ( MateRROutput *  output)

mate_rr_output_get_possible_crtcs: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):

References MateRROutput::possible_crtcs.

◆ mate_rr_output_get_preferred_mode()

MateRRMode * mate_rr_output_get_preferred_mode ( MateRROutput *  output)

mate_rr_output_get_preferred_mode: @output: a MateRROutput Returns: (transfer none):

References MateRROutput::modes, and MateRROutput::n_preferred.

Referenced by mate_rr_config_load_current().

◆ mate_rr_output_get_size_inches()

int mate_rr_output_get_size_inches ( MateRROutput *  output)

◆ mate_rr_output_get_type()

GType mate_rr_output_get_type ( void  )

◆ mate_rr_output_get_width_mm()

int mate_rr_output_get_width_mm ( MateRROutput *  outout)

◆ mate_rr_output_is_connected()

gboolean mate_rr_output_is_connected ( MateRROutput *  output)

◆ mate_rr_output_is_laptop()

gboolean mate_rr_output_is_laptop ( MateRROutput *  output)

References _mate_rr_output_name_is_laptop(), MateRROutput::connected, MateRROutput::connector_type, MATE_RR_CONNECTOR_TYPE_PANEL, and MateRROutput::name.

Referenced by mate_rr_config_load_current().

Here is the call graph for this function:

◆ mate_rr_output_list_modes()

MateRRMode ** mate_rr_output_list_modes ( MateRROutput *  output)

mate_rr_output_list_modes: @output: a MateRROutput Returns: (array zero-terminated=1) (transfer none):

References MateRROutput::modes.

Referenced by has_similar_mode(), mate_rr_config_load_current(), and real_assign_crtcs().

◆ mate_rr_output_supports_mode()

gboolean mate_rr_output_supports_mode ( MateRROutput *  output,
MateRRMode *  mode 
)

References MateRROutput::modes.

Referenced by crtc_assignment_assign().

◆ mate_rr_screen_get_crtc_by_id()

MateRRCrtc * mate_rr_screen_get_crtc_by_id ( MateRRScreen *  screen,
guint32  id 
)

mate_rr_screen_get_crtc_by_id:

Returns: (transfer none): the CRTC identified by @id

References ScreenInfo::crtcs, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.

◆ mate_rr_screen_get_output_by_id()

MateRROutput * mate_rr_screen_get_output_by_id ( MateRRScreen *  screen,
guint32  id 
)

mate_rr_screen_get_output_by_id:

Returns: (transfer none): the output identified by @id

References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::outputs, and MateRRScreen::priv.

◆ mate_rr_screen_get_output_by_name()

MateRROutput * mate_rr_screen_get_output_by_name ( MateRRScreen *  screen,
const char *  name 
)

◆ mate_rr_screen_get_ranges()

void mate_rr_screen_get_ranges ( MateRRScreen *  screen,
int *  min_width,
int *  max_width,
int *  min_height,
int *  max_height 
)

mate_rr_screen_get_ranges: @screen: a MateRRScreen @min_width: (out): the minimum width @max_width: (out): the maximum width @min_height: (out): the minimum height @max_height: (out): the maximum height

Get the ranges of the screen

References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::max_height, ScreenInfo::max_width, ScreenInfo::min_height, ScreenInfo::min_width, and MateRRScreen::priv.

Referenced by crtc_assignment_apply(), crtc_assignment_new(), and fill_out_screen_info().

◆ mate_rr_screen_get_timestamps()

void mate_rr_screen_get_timestamps ( MateRRScreen *  screen,
guint32 *  change_timestamp_ret,
guint32 *  config_timestamp_ret 
)

mate_rr_screen_get_timestamps: @screen: a MateRRScreen @change_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last changed @config_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last obtained

Queries the two timestamps that the X RANDR extension maintains. The X server will prevent change requests for stale configurations, those whose timestamp is not equal to that of the latest request for configuration. The X server will also prevent change requests that have an older timestamp to the latest change request.

References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.

◆ mate_rr_screen_get_type()

GType mate_rr_screen_get_type ( void  )

◆ mate_rr_screen_list_clone_modes()

MateRRMode ** mate_rr_screen_list_clone_modes ( MateRRScreen *  screen)

mate_rr_screen_list_clone_modes:

List available XRandR clone modes

Returns: (array zero-terminated=1) (transfer none):

References ScreenInfo::clone_modes, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.

◆ mate_rr_screen_list_crtcs()

MateRRCrtc ** mate_rr_screen_list_crtcs ( MateRRScreen *  screen)

mate_rr_screen_list_crtcs:

List all CRTCs

Returns: (array zero-terminated=1) (transfer none):

References ScreenInfo::crtcs, MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, and MateRRScreen::priv.

Referenced by crtc_assignment_apply(), and real_assign_crtcs().

◆ mate_rr_screen_list_modes()

MateRRMode ** mate_rr_screen_list_modes ( MateRRScreen *  screen)

mate_rr_screen_list_modes:

List available XRandR modes

Returns: (array zero-terminated=1) (transfer none):

References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::modes, and MateRRScreen::priv.

◆ mate_rr_screen_list_outputs()

MateRROutput ** mate_rr_screen_list_outputs ( MateRRScreen *  screen)

mate_rr_screen_list_outputs:

List all outputs

Returns: (array zero-terminated=1) (transfer none):

References MateRRScreenPrivate::info, MATE_IS_RR_SCREEN, ScreenInfo::outputs, and MateRRScreen::priv.

Referenced by mate_rr_config_load_current().

◆ mate_rr_screen_new()

MateRRScreen * mate_rr_screen_new ( GdkScreen *  screen,
GError **  error 
)

mate_rr_screen_new: @screen: the #GdkScreen on which to operate @error: will be set if XRandR is not supported

Creates a new MateRRScreen instance

Returns: a new MateRRScreen instance or NULL if screen could not be created, for instance if the driver does not support Xrandr 1.2

References _mate_desktop_init_i18n(), and MATE_TYPE_RR_SCREEN.

Here is the call graph for this function:

◆ mate_rr_screen_refresh()

gboolean mate_rr_screen_refresh ( MateRRScreen *  screen,
GError **  error 
)

mate_rr_screen_refresh: @screen: a MateRRScreen @error: location to store error, or NULL

Refreshes the screen configuration, and calls the screen's callback if it exists and if the screen's configuration changed.

Return value: TRUE if the screen's configuration changed; otherwise, the function returns FALSE and a NULL error if the configuration didn't change, or FALSE and a non-NULL error if there was an error while refreshing the configuration.

References force_timestamp_update(), MateRRScreenPrivate::gdk_screen, MateRRScreen::priv, and screen_update().

Referenced by mate_rr_config_apply_from_filename_with_time().

Here is the call graph for this function:

◆ mate_rr_screen_set_primary_output()

void mate_rr_screen_set_primary_output ( MateRRScreen *  screen,
MateRROutput *  output 
)

◆ mate_rr_screen_set_size()

void mate_rr_screen_set_size ( MateRRScreen *  screen,
int  width,
int  height,
int  mm_width,
int  mm_height 
)