![]() |
![]() |
![]() |
GNOME Color Manager Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define GCM_X11_OUTPUT_ERROR #define GCM_X11_OUTPUT_ERROR_INTERNAL struct GcmX11Output; struct GcmX11OutputClass; GcmX11Output * gcm_x11_output_new (void
); void gcm_x11_output_set_display (GcmX11Output *output
,gpointer display
); void gcm_x11_output_set_name (GcmX11Output *output
,const gchar *name
); const gchar * gcm_x11_output_get_name (GcmX11Output *output
); void gcm_x11_output_set_id (GcmX11Output *output
,guint id
); void gcm_x11_output_set_crtc_id (GcmX11Output *output
,guint crtc_id
); void gcm_x11_output_set_gamma_size (GcmX11Output *output
,guint gamma_size
); guint gcm_x11_output_get_gamma_size (GcmX11Output *output
); void gcm_x11_output_set_position (GcmX11Output *output
,guint x
,guint y
); void gcm_x11_output_get_position (GcmX11Output *output
,guint *x
,guint *y
); void gcm_x11_output_set_size (GcmX11Output *output
,guint width
,guint height
); void gcm_x11_output_get_size (GcmX11Output *output
,guint *width
,guint *height
); void gcm_x11_output_set_primary (GcmX11Output *output
,gboolean primary
); gboolean gcm_x11_output_get_primary (GcmX11Output *output
); void gcm_x11_output_set_connected (GcmX11Output *output
,gboolean connected
); gboolean gcm_x11_output_get_connected (GcmX11Output *output
); gboolean gcm_x11_output_get_gamma (GcmX11Output *output
,guint *length
,guint16 **red
,guint16 **green
,guint16 **blue
,GError **error
); gboolean gcm_x11_output_set_gamma (GcmX11Output *output
,guint length
,guint16 *red
,guint16 *green
,guint16 *blue
,GError **error
); gboolean gcm_x11_output_get_edid_data (GcmX11Output *output
,guint8 **data
,gsize *length
,GError **error
); gboolean gcm_x11_output_get_profile_data (GcmX11Output *output
,guint8 **data
,gsize *length
,GError **error
); gboolean gcm_x11_output_set_profile_data (GcmX11Output *output
,const guint8 *data
,gsize length
,GError **error
); gboolean gcm_x11_output_set_profile (GcmX11Output *output
,const gchar *filename
,GError **error
); gboolean gcm_x11_output_remove_profile (GcmX11Output *output
,GError **error
); GcmX11OutputPrivate;
GcmX11Output * gcm_x11_output_new (void
);
Returns : |
a new GcmX11Output object. |
Since 2.91.1
void gcm_x11_output_set_display (GcmX11Output *output
,gpointer display
);
void gcm_x11_output_set_name (GcmX11Output *output
,const gchar *name
);
Sets the interal panel name.
|
a valid GcmX11Output instance |
|
the display name, for instance "lvds" |
Since 2.91.1
const gchar * gcm_x11_output_get_name (GcmX11Output *output
);
Gets the panel name.
|
a valid GcmX11Output instance |
Returns : |
the panel name |
Since 2.91.1
void gcm_x11_output_set_id (GcmX11Output *output
,guint id
);
Sets the ID of the output.
|
a valid GcmX11Output instance |
|
the xrandr ID for the output |
Since 2.91.1
void gcm_x11_output_set_crtc_id (GcmX11Output *output
,guint crtc_id
);
Sets the CRTC (specific control on an output) id.
|
a valid GcmX11Output instance |
|
the CRCT id |
Since 2.91.1
void gcm_x11_output_set_gamma_size (GcmX11Output *output
,guint gamma_size
);
Sets the size of the gamma ramp.
|
a valid GcmX11Output instance |
|
the size of the gamma ramp. |
Since 2.91.1
guint gcm_x11_output_get_gamma_size (GcmX11Output *output
);
Gets the size of the gamma ramps.
|
a valid GcmX11Output instance |
Returns : |
the size. This is normally 256 or 1024. |
Since 2.91.1
void gcm_x11_output_set_position (GcmX11Output *output
,guint x
,guint y
);
Sets the position of the display relative to the absolute size of all the GcmX11Output's.
|
a valid GcmX11Output instance |
|
the x cordinate |
|
the y cordinate |
Since 2.91.1
void gcm_x11_output_get_position (GcmX11Output *output
,guint *x
,guint *y
);
Gets the position of the panel relative to the absolute size of all the GcmX11Output's.
|
a valid GcmX11Output instance |
|
the returned x cordinate, or NULL
|
|
the returned y cordinate, or NULL
|
Since 2.91.1
void gcm_x11_output_set_size (GcmX11Output *output
,guint width
,guint height
);
Sets the size of the output.
|
a valid GcmX11Output instance |
|
the output width in pixels |
|
the output height in pixels |
Since 2.91.1
void gcm_x11_output_get_size (GcmX11Output *output
,guint *width
,guint *height
);
Gets the output size.
|
a valid GcmX11Output instance |
|
the returned output width in pixels, or NULL
|
|
the returned output height in pixels, or NULL
|
Since 2.91.1
void gcm_x11_output_set_primary (GcmX11Output *output
,gboolean primary
);
Sets if the panel is the most important primary screen.
|
a valid GcmX11Output instance |
|
if the panel is the primary screen |
Since 2.91.1
gboolean gcm_x11_output_get_primary (GcmX11Output *output
);
Gets if the panel is the primary most important screen. There should only ever be one primary screen in a GcmX11Screen.
|
a valid GcmX11Output instance |
Returns : |
TRUE for the primary screen. |
Since 2.91.1
void gcm_x11_output_set_connected (GcmX11Output *output
,gboolean connected
);
Sets if the device is connected, i.e. has an actual physical device plugged into the port. NOTE: a device can be conncted even if it is powered off or in sleep mode.
|
a valid GcmX11Output instance |
|
the devices connected state |
Since 2.91.1
gboolean gcm_x11_output_get_connected (GcmX11Output *output
);
Gets if the output is connected. This function should return TRUE
most of the time as non-connected outputs should not have been added
to the GcmX11Screen.
|
a valid GcmX11Output instance |
Returns : |
if the device is connected. |
Since 2.91.1
gboolean gcm_x11_output_get_gamma (GcmX11Output *output
,guint *length
,guint16 **red
,guint16 **green
,guint16 **blue
,GError **error
);
Gets the gamma ramps for the given output.
|
a valid GcmX11Output instance |
|
the returned data arrays size, or NULL . |
|
the returned red channel data array, or NULL . Free with g_free() . |
|
the returned red channel data array, or NULL . Free with g_free() . |
|
the returned red channel data array, or NULL . Free with g_free() . |
|
a GError , or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_set_gamma (GcmX11Output *output
,guint length
,guint16 *red
,guint16 *green
,guint16 *blue
,GError **error
);
Sets the gamma ramps for the given output.
|
a valid GcmX11Output instance |
|
the data arrays length, or NULL . |
|
the red channel data array |
|
the red channel data array |
|
the red channel data array |
|
a GError , or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_get_edid_data (GcmX11Output *output
,guint8 **data
,gsize *length
,GError **error
);
Gets the EDID data for the output.
|
a valid GcmX11Output instance |
|
the returned data, free with g_free()
|
|
the size of the returned data in bytes |
|
A GError, or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_get_profile_data (GcmX11Output *output
,guint8 **data
,gsize *length
,GError **error
);
Gets the ICC profile data from the specified output.
|
a valid GcmX11Output instance |
|
the data that is returned from the XServer. Free with g_free()
|
|
the size of the returned data, or NULL if you don't care |
|
a GError that is set in the result of an error, or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_set_profile_data (GcmX11Output *output
,const guint8 *data
,gsize length
,GError **error
);
Sets the ICC profile data to the specified output.
|
a valid GcmX11Output instance |
|
the data that is to be set to the XServer |
|
the size of the data |
|
a GError that is set in the result of an error, or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_set_profile (GcmX11Output *output
,const gchar *filename
,GError **error
);
Sets the ICC profile data to the specified output.
|
a valid GcmX11Output instance |
|
the filename of the ICC profile |
|
a GError that is set in the result of an error, or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
gboolean gcm_x11_output_remove_profile (GcmX11Output *output
,GError **error
);
Sets the ICC profile data to the specified output.
|
a valid GcmX11Output instance |
|
a GError that is set in the result of an error, or NULL
|
Returns : |
TRUE for success. |
Since 2.91.1
typedef struct _GcmX11OutputPrivate GcmX11OutputPrivate;
Private GcmX11Output data