Top |
Functions
Types and Values
GnomeRRScreen | |
GnomeRRScreenClass | |
typedef | GnomeRROutput |
typedef | GnomeRRCrtc |
enum | GnomeRRDpmsMode |
typedef | GnomeRRMode |
enum | GnomeRRRotation |
#define | GNOME_RR_ERROR |
enum | GnomeRRError |
#define | GNOME_RR_CONNECTOR_TYPE_PANEL |
Functions
gnome_rr_error_quark ()
GQuark
gnome_rr_error_quark (void
);
Returns the GQuark that will be used for GError values returned by the GnomeRR API.
gnome_rr_screen_new ()
GnomeRRScreen * gnome_rr_screen_new (GdkScreen *screen
,GError **error
);
Creates a unique GnomeRRScreen instance for the specified screen
.
Returns
a unique GnomeRRScreen instance, specific to the screen
, or NULL
if this could not be created, for instance if the driver does not support
Xrandr 1.2. Each GdkScreen thus has a single instance of GnomeRRScreen.
gnome_rr_screen_new_async ()
void gnome_rr_screen_new_async (GdkScreen *screen
,GAsyncReadyCallback callback
,gpointer user_data
);
gnome_rr_screen_new_finish ()
GnomeRRScreen * gnome_rr_screen_new_finish (GAsyncResult *result
,GError **error
);
gnome_rr_screen_list_outputs ()
GnomeRROutput **
gnome_rr_screen_list_outputs (GnomeRRScreen *screen
);
List all outputs
gnome_rr_screen_list_crtcs ()
GnomeRRCrtc **
gnome_rr_screen_list_crtcs (GnomeRRScreen *screen
);
List all CRTCs
gnome_rr_screen_list_modes ()
GnomeRRMode **
gnome_rr_screen_list_modes (GnomeRRScreen *screen
);
List available XRandR modes
gnome_rr_screen_list_clone_modes ()
GnomeRRMode **
gnome_rr_screen_list_clone_modes (GnomeRRScreen *screen
);
List available XRandR clone modes
gnome_rr_screen_get_crtc_by_id ()
GnomeRRCrtc * gnome_rr_screen_get_crtc_by_id (GnomeRRScreen *screen
,guint32 id
);
gnome_rr_screen_refresh ()
gboolean gnome_rr_screen_refresh (GnomeRRScreen *screen
,GError **error
);
Refreshes the screen configuration, and calls the screen's callback if it exists and if the screen's configuration changed.
gnome_rr_screen_get_output_by_id ()
GnomeRROutput * gnome_rr_screen_get_output_by_id (GnomeRRScreen *screen
,guint32 id
);
gnome_rr_screen_get_output_by_name ()
GnomeRROutput * gnome_rr_screen_get_output_by_name (GnomeRRScreen *screen
,const char *name
);
gnome_rr_screen_get_ranges ()
void gnome_rr_screen_get_ranges (GnomeRRScreen *screen
,int *min_width
,int *max_width
,int *min_height
,int *max_height
);
Get the ranges of the screen
gnome_rr_screen_get_dpms_mode ()
gboolean gnome_rr_screen_get_dpms_mode (GnomeRRScreen *screen
,GnomeRRDpmsMode *mode
,GError **error
);
gnome_rr_screen_set_dpms_mode ()
gboolean gnome_rr_screen_set_dpms_mode (GnomeRRScreen *screen
,GnomeRRDpmsMode mode
,GError **error
);
This method also disables the DPMS timeouts.
gnome_rr_output_get_edid_data ()
const guint8 * gnome_rr_output_get_edid_data (GnomeRROutput *output
,gsize *size
);
gnome_rr_output_get_possible_crtcs ()
GnomeRRCrtc **
gnome_rr_output_get_possible_crtcs (GnomeRROutput *output
);
gnome_rr_output_get_current_mode ()
GnomeRRMode *
gnome_rr_output_get_current_mode (GnomeRROutput *output
);
gnome_rr_output_is_builtin_display ()
gboolean
gnome_rr_output_is_builtin_display (GnomeRROutput *output
);
gnome_rr_output_get_position ()
void gnome_rr_output_get_position (GnomeRROutput *output
,int *x
,int *y
);
gnome_rr_output_can_clone ()
gboolean gnome_rr_output_can_clone (GnomeRROutput *output
,GnomeRROutput *clone
);
gnome_rr_output_get_preferred_mode ()
GnomeRRMode *
gnome_rr_output_get_preferred_mode (GnomeRROutput *output
);
gnome_rr_output_supports_mode ()
gboolean gnome_rr_output_supports_mode (GnomeRROutput *output
,GnomeRRMode *mode
);
gnome_rr_output_supports_underscanning ()
gboolean
gnome_rr_output_supports_underscanning
(GnomeRROutput *output
);
gnome_rr_output_get_is_underscanning ()
gboolean
gnome_rr_output_get_is_underscanning (GnomeRROutput *output
);
gnome_rr_output_set_backlight ()
gboolean gnome_rr_output_set_backlight (GnomeRROutput *output
,gint value
,GError **error
);
gnome_rr_output_get_display_name ()
const char *
gnome_rr_output_get_display_name (GnomeRROutput *output
);
gnome_rr_output_get_ids_from_edid ()
void gnome_rr_output_get_ids_from_edid (GnomeRROutput *output
,char **vendor
,char **product
,char **serial
);
gnome_rr_output_get_min_backlight_step ()
gint
gnome_rr_output_get_min_backlight_step
(GnomeRROutput *output
);
gnome_rr_output_get_physical_size ()
void gnome_rr_output_get_physical_size (GnomeRROutput *output
,int *width_mm
,int *height_mm
);
gnome_rr_mode_get_is_tiled ()
gboolean
gnome_rr_mode_get_is_tiled (GnomeRRMode *mode
);
Returns TRUE if this mode is a tiled mode created for span a tiled monitor.
gnome_rr_crtc_can_drive_output ()
gboolean gnome_rr_crtc_can_drive_output (GnomeRRCrtc *crtc
,GnomeRROutput *output
);
gnome_rr_crtc_get_current_rotation ()
GnomeRRRotation
gnome_rr_crtc_get_current_rotation (GnomeRRCrtc *crtc
);
gnome_rr_crtc_supports_rotation ()
gboolean gnome_rr_crtc_supports_rotation (GnomeRRCrtc *crtc
,GnomeRRRotation rotation
);
gnome_rr_crtc_get_gamma ()
gboolean gnome_rr_crtc_get_gamma (GnomeRRCrtc *crtc
,int *size
,unsigned short **red
,unsigned short **green
,unsigned short **blue
);
gnome_rr_crtc_set_gamma ()
gboolean gnome_rr_crtc_set_gamma (GnomeRRCrtc *crtc
,int size
,unsigned short *red
,unsigned short *green
,unsigned short *blue
);
Types and Values
GnomeRRScreenClass
typedef struct { GObjectClass parent_class; void (*changed) (GnomeRRScreen *screen); void (*output_connected) (GnomeRRScreen *screen, GnomeRROutput *output); void (*output_disconnected) (GnomeRRScreen *screen, GnomeRROutput *output); } GnomeRRScreenClass;