cafe-rr-crtc: CAFE Desktop Library Reference Manual

## cafe-rr-crtc cafe-rr-crtc |

## Functions

guint32 | cafe_rr_crtc_get_id ()
gboolean | cafe_rr_crtc_set_config ()
gboolean | cafe_rr_crtc_can_drive_output ()
CafeRRMode * | cafe_rr_crtc_get_current_mode ()
void | cafe_rr_crtc_get_position ()
gboolean | cafe_rr_crtc_supports_rotation ()
CafeRRRotation | cafe_rr_crtc_get_current_rotation ()
CafeRRRotation | cafe_rr_crtc_get_rotations ()

## Types and Values

typedef | CafeRRCrtc
enum | CafeRRRotation

## Includes

    #include <cafe-rr.h>

## Description

## Functions

### cafe_rr_crtc_get_id ()

    guint32
    cafe_rr_crtc_get_id (CafeRRCrtc *crtc);

### cafe_rr_crtc_set_config ()

    gboolean
    cafe_rr_crtc_set_config (CafeRRCrtc *crtc,
                             int x,
                             int y,
                             CafeRRMode *mode,
                             CafeRRRotation rotation,
                             CafeRROutput **outputs,
                             int n_outputs,
                             GError **error);

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

### cafe_rr_crtc_can_drive_output ()

    gboolean
    cafe_rr_crtc_can_drive_output (CafeRRCrtc *crtc,
                                   CafeRROutput *output);

### cafe_rr_crtc_get_current_mode ()

    CafeRRMode *
    cafe_rr_crtc_get_current_mode (CafeRRCrtc *crtc);

#### Parameters

crtc | a CafeRRCrtc |

#### Returns

the current mode of this crtc.

[transfer none]

### cafe_rr_crtc_get_position ()

    void
    cafe_rr_crtc_get_position (CafeRRCrtc *crtc,
                               int *x,
                               int *y);

#### Parameters

crtc | a CafeRRCrtc |
x | . | [out][allow-none]
y | . | [out][allow-none]

### cafe_rr_crtc_supports_rotation ()

    gboolean
    cafe_rr_crtc_supports_rotation (CafeRRCrtc *crtc,
                                    CafeRRRotation rotation);

### cafe_rr_crtc_get_current_rotation ()

    CafeRRRotation
    cafe_rr_crtc_get_current_rotation (CafeRRCrtc *crtc);

### cafe_rr_crtc_get_rotations ()

    CafeRRRotation
    cafe_rr_crtc_get_rotations (CafeRRCrtc *crtc);

## Types and Values

### CafeRRCrtc

    typedef struct CafeRRCrtc CafeRRCrtc;

### enum CafeRRRotation

#### Members

CAFE_RR_ROTATION_0 |  |
CAFE_RR_ROTATION_90 |  |
CAFE_RR_ROTATION_180 |  |
CAFE_RR_ROTATION_270 |  |
CAFE_RR_REFLECT_X |  |
CAFE_RR_REFLECT_Y |  |