| GNOME Desktop Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GnomeRROutputInfo; struct GnomeRROutputInfoClass; double gnome_rr_output_info_get_aspect_ratio (GnomeRROutputInfo *self); char * gnome_rr_output_info_get_display_name (GnomeRROutputInfo *self); void gnome_rr_output_info_get_geometry (GnomeRROutputInfo *self,int *x,int *y,int *width,int *height); char * gnome_rr_output_info_get_name (GnomeRROutputInfo *self); int gnome_rr_output_info_get_preferred_height (GnomeRROutputInfo *self); int gnome_rr_output_info_get_preferred_width (GnomeRROutputInfo *self); gboolean gnome_rr_output_info_get_primary (GnomeRROutputInfo *self); guint gnome_rr_output_info_get_product (GnomeRROutputInfo *self); int gnome_rr_output_info_get_refresh_rate (GnomeRROutputInfo *self); GnomeRRRotation gnome_rr_output_info_get_rotation (GnomeRROutputInfo *self); guint gnome_rr_output_info_get_serial (GnomeRROutputInfo *self); void gnome_rr_output_info_get_vendor (GnomeRROutputInfo *self,gchar *vendor); gboolean gnome_rr_output_info_is_active (GnomeRROutputInfo *self); gboolean gnome_rr_output_info_is_connected (GnomeRROutputInfo *self); void gnome_rr_output_info_set_active (GnomeRROutputInfo *self,gboolean active); void gnome_rr_output_info_set_geometry (GnomeRROutputInfo *self,int x,int y,int width,int height); void gnome_rr_output_info_set_primary (GnomeRROutputInfo *self,gboolean primary); void gnome_rr_output_info_set_refresh_rate (GnomeRROutputInfo *self,int rate); void gnome_rr_output_info_set_rotation (GnomeRROutputInfo *self,GnomeRRRotation rotation); struct GnomeRRConfig; struct GnomeRRConfigClass; GnomeRRConfig * gnome_rr_config_new_current (GnomeRRScreen *screen,GError **error); GnomeRRConfig * gnome_rr_config_new_stored (GnomeRRScreen *screen,GError **error); gboolean gnome_rr_config_match (GnomeRRConfig *config1,GnomeRRConfig *config2); gboolean gnome_rr_config_equal (GnomeRRConfig *config1,GnomeRRConfig *config2); gboolean gnome_rr_config_save (GnomeRRConfig *configuration,GError **error); void gnome_rr_config_sanitize (GnomeRRConfig *configuration); gboolean gnome_rr_config_apply_with_time (GnomeRRConfig *configuration,GnomeRRScreen *screen,guint32 timestamp,GError **error); gboolean gnome_rr_config_apply_from_filename_with_time (GnomeRRScreen *screen,const char *filename,guint32 timestamp,GError **error); gboolean gnome_rr_config_applicable (GnomeRRConfig *configuration,GnomeRRScreen *screen,GError **error); char * gnome_rr_config_get_backup_filename (void); char * gnome_rr_config_get_intended_filename (void); gboolean gnome_rr_config_ensure_primary (GnomeRRConfig *configuration); gboolean gnome_rr_config_get_clone (GnomeRRConfig *configuration); GnomeRROutputInfo ** gnome_rr_config_get_outputs (GnomeRRConfig *configuration); gboolean gnome_rr_config_load_current (GnomeRRConfig *self,GError **error); gboolean gnome_rr_config_load_filename (GnomeRRConfig *self,const gchar *filename,GError **error); void gnome_rr_config_set_clone (GnomeRRConfig *configuration,gboolean clone);
double gnome_rr_output_info_get_aspect_ratio
(GnomeRROutputInfo *self);
char * gnome_rr_output_info_get_display_name
(GnomeRROutputInfo *self);
Returns : |
the display name of this output. [transfer none] |
void gnome_rr_output_info_get_geometry (GnomeRROutputInfo *self,int *x,int *y,int *width,int *height);
|
a GnomeRROutputInfo |
|
. [out][allow-none] |
|
. [out][allow-none] |
|
. [out][allow-none] |
|
. [out][allow-none] |
char * gnome_rr_output_info_get_name (GnomeRROutputInfo *self);
Returns : |
the output name. [transfer none] |
int gnome_rr_output_info_get_preferred_height
(GnomeRROutputInfo *self);
int gnome_rr_output_info_get_preferred_width
(GnomeRROutputInfo *self);
gboolean gnome_rr_output_info_get_primary (GnomeRROutputInfo *self);
guint gnome_rr_output_info_get_product (GnomeRROutputInfo *self);
int gnome_rr_output_info_get_refresh_rate
(GnomeRROutputInfo *self);
GnomeRRRotation gnome_rr_output_info_get_rotation (GnomeRROutputInfo *self);
void gnome_rr_output_info_get_vendor (GnomeRROutputInfo *self,gchar *vendor);
|
a GnomeRROutputInfo |
|
. [out caller-allocates][array fixed-size=4] |
gboolean gnome_rr_output_info_is_active (GnomeRROutputInfo *self);
Returns : |
whether there is a CRTC assigned to this output (i.e. a signal is being sent to it) |
gboolean gnome_rr_output_info_is_connected (GnomeRROutputInfo *self);
Returns : |
whether the output is physically connected to a monitor |
void gnome_rr_output_info_set_active (GnomeRROutputInfo *self,gboolean active);
void gnome_rr_output_info_set_geometry (GnomeRROutputInfo *self,int x,int y,int width,int height);
void gnome_rr_output_info_set_primary (GnomeRROutputInfo *self,gboolean primary);
void gnome_rr_output_info_set_refresh_rate (GnomeRROutputInfo *self,int rate);
void gnome_rr_output_info_set_rotation (GnomeRROutputInfo *self,GnomeRRRotation rotation);
GnomeRRConfig * gnome_rr_config_new_current (GnomeRRScreen *screen,GError **error);
GnomeRRConfig * gnome_rr_config_new_stored (GnomeRRScreen *screen,GError **error);
gboolean gnome_rr_config_match (GnomeRRConfig *config1,GnomeRRConfig *config2);
gboolean gnome_rr_config_equal (GnomeRRConfig *config1,GnomeRRConfig *config2);
gboolean gnome_rr_config_save (GnomeRRConfig *configuration,GError **error);
gboolean gnome_rr_config_apply_with_time (GnomeRRConfig *configuration,GnomeRRScreen *screen,guint32 timestamp,GError **error);
gboolean gnome_rr_config_apply_from_filename_with_time (GnomeRRScreen *screen,const char *filename,guint32 timestamp,GError **error);
gboolean gnome_rr_config_applicable (GnomeRRConfig *configuration,GnomeRRScreen *screen,GError **error);
gboolean gnome_rr_config_ensure_primary (GnomeRRConfig *configuration);
gboolean gnome_rr_config_get_clone (GnomeRRConfig *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). |
GnomeRROutputInfo ** gnome_rr_config_get_outputs (GnomeRRConfig *configuration);
Returns : |
the output configuration for this GnomeRRConfig. [array zero-terminated=1][element-type GnomeDesktop.RROutputInfo][transfer none] |
gboolean gnome_rr_config_load_current (GnomeRRConfig *self,GError **error);
gboolean gnome_rr_config_load_filename (GnomeRRConfig *self,const gchar *filename,GError **error);
void gnome_rr_config_set_clone (GnomeRRConfig *configuration,gboolean clone);