![]() |
![]() |
![]() |
MATE Desktop Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <mate-rr.h> MateRRScreen; MateRRScreen * mate_rr_screen_new (GdkScreen *screen
,GError **error
); gboolean mate_rr_screen_refresh (MateRRScreen *screen
,GError **error
); MateRROutput ** mate_rr_screen_list_outputs (MateRRScreen *screen
); MateRRCrtc ** mate_rr_screen_list_crtcs (MateRRScreen *screen
); MateRRMode ** mate_rr_screen_list_modes (MateRRScreen *screen
); MateRRMode ** mate_rr_screen_list_clone_modes (MateRRScreen *screen
); void mate_rr_screen_set_size (MateRRScreen *screen
,int width
,int height
,int mm_width
,int mm_height
); MateRROutput * mate_rr_screen_get_output_by_id (MateRRScreen *screen
,guint32 id
); MateRROutput * mate_rr_screen_get_output_by_name (MateRRScreen *screen
,const char *name
); MateRRCrtc * mate_rr_screen_get_crtc_by_id (MateRRScreen *screen
,guint32 id
); void mate_rr_screen_get_ranges (MateRRScreen *screen
,int *min_width
,int *max_width
,int *min_height
,int *max_height
);
MateRRScreen * mate_rr_screen_new (GdkScreen *screen
,GError **error
);
Creates a new MateRRScreen instance
|
the GdkScreen on which to operate |
|
will be set if XRandR is not supported |
Returns : |
a new MateRRScreen instance or NULL if screen could not be created, for instance if the driver does not support Xrandr 1.2 |
gboolean mate_rr_screen_refresh (MateRRScreen *screen
,GError **error
);
Refreshes the screen configuration, and calls the screen's callback if it exists and if the screen's configuration changed.
|
a MateRRScreen |
|
location to store error, or NULL
|
Returns : |
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. |
MateRROutput ** mate_rr_screen_list_outputs (MateRRScreen *screen
);
List all outputs
Returns : |
. [array zero-terminated=1][transfer none] |
MateRRCrtc ** mate_rr_screen_list_crtcs (MateRRScreen *screen
);
List all CRTCs
Returns : |
. [array zero-terminated=1][transfer none] |
MateRRMode ** mate_rr_screen_list_modes (MateRRScreen *screen
);
List available XRandR modes
Returns : |
. [array zero-terminated=1][transfer none] |
MateRRMode ** mate_rr_screen_list_clone_modes (MateRRScreen *screen
);
List available XRandR clone modes
Returns : |
. [array zero-terminated=1][transfer none] |
void mate_rr_screen_set_size (MateRRScreen *screen
,int width
,int height
,int mm_width
,int mm_height
);
MateRROutput * mate_rr_screen_get_output_by_id (MateRRScreen *screen
,guint32 id
);
Returns : |
the output identified by id . [transfer none]
|
MateRROutput * mate_rr_screen_get_output_by_name (MateRRScreen *screen
,const char *name
);
Returns : |
the output identified by name . [transfer none]
|
MateRRCrtc * mate_rr_screen_get_crtc_by_id (MateRRScreen *screen
,guint32 id
);
Returns : |
the CRTC identified by id . [transfer none]
|
void mate_rr_screen_get_ranges (MateRRScreen *screen
,int *min_width
,int *max_width
,int *min_height
,int *max_height
);
Get the ranges of the screen
|
a MateRRScreen |
|
the minimum width. [out] |
|
the maximum width. [out] |
|
the minimum height. [out] |
|
the maximum height. [out] |