## gnome-rr-config

gnome-rr-config

## Synopsis

    typedef             GnomeOutputInfo;
    typedef             GnomeRRConfig;
    GnomeRRConfig *     gnome_rr_config_new_current         (GnomeRRScreen *screen);
    GnomeRRConfig *     gnome_rr_config_new_stored          (GnomeRRScreen *screen,
                                                             GError **error);
    void                gnome_rr_config_free                (GnomeRRConfig *configuration);
    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               (GnomeRRConfig *configuration,
                                                             GnomeRRScreen *screen,
                                                             GError **error);
    gboolean            gnome_rr_config_apply_with_time     (GnomeRRConfig *configuration,
                                                             GnomeRRScreen *screen,
                                                             guint32 timestamp,
                                                             GError **error);
    gboolean            gnome_rr_config_apply_stored        (GnomeRRScreen *screen,
                                                             GError **error);
    gboolean            gnome_rr_config_apply_from_filename (GnomeRRScreen *screen,
                                                             const char *filename,
                                                             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);
    GnomeRRMode **      gnome_rr_create_clone_modes         (GnomeRRScreen *screen);

## Description

## Details

### GnomeOutputInfo

    typedef struct GnomeOutputInfo GnomeOutputInfo;

### GnomeRRConfig

    typedef struct GnomeRRConfig GnomeRRConfig;

### gnome_rr_config_new_current ()

    GnomeRRConfig *     gnome_rr_config_new_current         (GnomeRRScreen *screen);

### gnome_rr_config_new_stored ()

    GnomeRRConfig *     gnome_rr_config_new_stored          (GnomeRRScreen *screen,
                                                             GError **error);

### gnome_rr_config_free ()

    void                gnome_rr_config_free                (GnomeRRConfig *configuration);

### gnome_rr_config_match ()

    gboolean            gnome_rr_config_match               (GnomeRRConfig *config1,
                                                             GnomeRRConfig *config2);

### gnome_rr_config_equal ()

    gboolean            gnome_rr_config_equal               (GnomeRRConfig *config1,
                                                             GnomeRRConfig *config2);

### gnome_rr_config_save ()

    gboolean            gnome_rr_config_save                (GnomeRRConfig *configuration,
                                                             GError **error);

### gnome_rr_config_sanitize ()

    void                gnome_rr_config_sanitize            (GnomeRRConfig *configuration);

### gnome_rr_config_apply ()

    gboolean            gnome_rr_config_apply               (GnomeRRConfig *configuration,
                                                             GnomeRRScreen *screen,
                                                             GError **error);

### Warning

`gnome_rr_config_apply` is deprecated and should not be used in newly-written code.

### gnome_rr_config_apply_with_time ()

    gboolean            gnome_rr_config_apply_with_time     (GnomeRRConfig *configuration,
                                                             GnomeRRScreen *screen,
                                                             guint32 timestamp,
                                                             GError **error);

### gnome_rr_config_apply_stored ()

    gboolean            gnome_rr_config_apply_stored        (GnomeRRScreen *screen,
                                                             GError **error);

### Warning

`gnome_rr_config_apply_stored` is deprecated and should not be used in newly-written code.

See the documentation for `gnome_rr_config_apply_from_filename()`. This function simply calls that other function with a filename of `gnome_rr_config_get_intended_filename()`.

`Deprecated`: 2.26: Use `gnome_rr_config_apply_from_filename()` instead and pass it the filename from `gnome_rr_config_get_intended_filename()`.

`screen` : | A GnomeRRScreen
`error` : | Location to store error, or `NULL`

### gnome_rr_config_apply_from_filename ()

    gboolean            gnome_rr_config_apply_from_filename (GnomeRRScreen *screen,
                                                             const char *filename,
                                                             GError **error);

### Warning

`gnome_rr_config_apply_from_filename` is deprecated and should not be used in newly-written code.

### gnome_rr_config_apply_from_filename_with_time ()

    gboolean            gnome_rr_config_apply_from_filename_with_time
                                                            (GnomeRRScreen *screen,
                                                             const char *filename,
                                                             guint32 timestamp,
                                                             GError **error);

### gnome_rr_config_applicable ()

    gboolean            gnome_rr_config_applicable          (GnomeRRConfig *configuration,
                                                             GnomeRRScreen *screen,
                                                             GError **error);

### gnome_rr_config_get_backup_filename ()

    char *              gnome_rr_config_get_backup_filename (void);

### gnome_rr_config_get_intended_filename ()

    char *              gnome_rr_config_get_intended_filename
                                                            (void);

### gnome_rr_create_clone_modes ()

    GnomeRRMode **      gnome_rr_create_clone_modes         (GnomeRRScreen *screen);