Colord.Profile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r/w/c |
|||
r |
|||
r |
|||
r |
|||
r |
|||
[ |
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Colord.Profile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod error_from_string(error_desc)[source]¶
- Parameters:
error_desc (
str
) –- Returns:
enumerated value
- Return type:
Converts a string to a
Colord.ProfileError
.New in version 0.1.26.
- classmethod error_to_string(error_enum)[source]¶
- Parameters:
error_enum (
Colord.ProfileError
) –- Returns:
identifier string
- Return type:
Converts a
Colord.ProfileError
to a string.New in version 0.1.26.
- classmethod kind_from_string(profile_kind)[source]¶
- Parameters:
profile_kind (
str
) –- Return type:
New in version 2.91.1.
- classmethod kind_to_string(profile_kind)[source]¶
- Parameters:
profile_kind (
Colord.ProfileKind
) –- Return type:
New in version 2.91.1.
- classmethod new()[source]¶
- Returns:
a new
Colord.Profile
object.- Return type:
Creates a new
Colord.Profile
object.New in version 0.1.0.
- classmethod new_with_object_path(object_path)[source]¶
- Parameters:
object_path (
str
) – The colord object path.- Returns:
a new profile object.
- Return type:
Creates a new
Colord.Profile
object with a known object path.New in version 0.1.8.
- classmethod quality_from_string(quality)[source]¶
- Parameters:
quality (
str
) –- Returns:
enumerated value
- Return type:
Converts a string to a
Colord.ProfileQuality
.New in version 0.1.27.
- classmethod quality_to_string(quality_enum)[source]¶
- Parameters:
quality_enum (
Colord.ProfileQuality
) –- Returns:
identifier string
- Return type:
Converts a
Colord.ProfileQuality
to a string.New in version 0.1.27.
- classmethod warning_from_string(type)[source]¶
- Parameters:
type (
str
) –- Returns:
enumerated value
- Return type:
Converts a string to a
Colord.ProfileWarning
.New in version 0.1.25.
- classmethod warning_to_string(kind_enum)[source]¶
- Parameters:
kind_enum (
Colord.ProfileWarning
) –- Returns:
identifier string
- Return type:
Converts a
Colord.ProfileWarning
to a string.New in version 0.1.25.
- connect(cancellable, callback, *user_data)[source]¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Connects to the object and fills up initial properties.
New in version 0.1.8.
- connect_finish(res)[source]¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
success
- Return type:
Gets the result from the asynchronous function.
New in version 0.1.8.
- connect_sync(cancellable)[source]¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
- Return type:
Connects to the object and fills up initial properties.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.1.8.
- equal(profile2)[source]¶
- Parameters:
profile2 (
Colord.Profile
) – anotherColord.Profile
instance.- Returns:
True
if the profiles are the same device- Return type:
Tests two profiles for equality.
New in version 0.1.8.
- get_age()[source]¶
- Returns:
A UNIX time, or 0 if the profile has no creation date
- Return type:
Gets the profile age in seconds relative to the current time.
New in version 0.1.8.
- get_created()[source]¶
- Returns:
A UNIX time, or 0 if the profile has no creation date
- Return type:
Gets the profile created date and time.
New in version 0.1.8.
- get_is_system_wide()[source]¶
-
Returns if the profile is installed system wide and available for all users.
New in version 0.1.2.
- get_kind()[source]¶
- Returns:
A
Colord.ProfileKind
, e.g.Colord.ProfileKind.DISPLAY_DEVICE
- Return type:
Gets the profile kind.
New in version 0.1.1.
- get_metadata_item(key)[source]¶
- Parameters:
key (
str
) – a key for the metadata dictionary- Returns:
the metadata value, or
None
if not set.- Return type:
Returns the profile metadata for a specific key.
New in version 0.1.5.
- get_owner()[source]¶
- Returns:
The UID of the user that created the device
- Return type:
Gets the profile owner.
New in version 0.1.13.
- get_warnings()[source]¶
- Returns:
Any profile warnings, e.g. “vcgt-non-monotonic”
- Return type:
[
str
]
Gets the profile warnings as a string array.
New in version 0.1.25.
- has_access()[source]¶
-
Gets if the current user has access permissions to the profile.
New in version 0.1.13.
- install_system_wide(cancellable, callback, *user_data)[source]¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Sets the profile system wide.
New in version 0.1.8.
- install_system_wide_finish(res)[source]¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
success
- Return type:
Gets the result from the asynchronous function.
New in version 0.1.8.
- install_system_wide_sync(cancellable)[source]¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
- Return type:
Sets the profile system wide.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.1.8.
- load_icc(flags, cancellable)[source]¶
- Parameters:
flags (
Colord.IccLoadFlags
) – options for loading the profilecancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
, orNone
- Raises:
- Returns:
A new
Colord.Icc
object, orNone
for error- Return type:
Loads a local ICC object from the abstract profile.
New in version 0.1.32.
- set_object_path(object_path)[source]¶
- Parameters:
object_path (
str
) – The colord object path.
Sets the object path of the profile.
New in version 0.1.8.
- set_property(key, value, cancellable, callback, *user_data)[source]¶
- Parameters:
key (
str
) – a key namevalue (
str
) – a key valuecancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Deletes a color device.
New in version 0.1.8.
- set_property_finish(res)[source]¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
success
- Return type:
Gets the result from the asynchronous function.
New in version 0.1.8.
- set_property_sync(key, value, cancellable)[source]¶
- Parameters:
key (
str
) – The keyvalue (
str
) – The valuecancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
- Return type:
Sets properties on an object
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.1.8.
- to_string()[source]¶
- Returns:
text representation of
Colord.Profile
- Return type:
Converts the profile to a string description.
New in version 0.1.0.
- do_changed() virtual¶
Signal Details¶
- Colord.Profile.signals.changed(profile)¶
- Signal Name:
changed
- Flags:
- Parameters:
profile (
Colord.Profile
) – The object which received the signal
The
::changed
signal is emitted when the profile data has changed.New in version 0.1.0.
Property Details¶
- Colord.Profile.props.colorspace¶
-
The profile colorspace.
New in version 0.1.2.
- Colord.Profile.props.connected¶
-
The if the object path has been connected as is valid for use.
New in version 0.1.9.
- Colord.Profile.props.created¶
-
When the profile was created.
New in version 0.1.8.
- Colord.Profile.props.filename¶
-
The profile filename.
New in version 0.1.0.
- Colord.Profile.props.format¶
-
The profile format.
New in version 0.1.4.
- Colord.Profile.props.has_vcgt¶
-
If the profile has a VCGT table.
New in version 0.1.2.
- Colord.Profile.props.id¶
-
The profile ID.
New in version 0.1.0.
- Colord.Profile.props.is_system_wide¶
-
If the profile is installed system wide for all users.
New in version 0.1.2.
- Colord.Profile.props.kind¶
-
The profile kind.
New in version 0.1.1.
- Colord.Profile.props.object_path¶
-
The object path of the remote object
New in version 0.1.8.
- Colord.Profile.props.owner¶
-
The profile owner, e.g. %500.
New in version 0.1.13.
- Colord.Profile.props.qualifier¶
-
The profile qualifier.
New in version 0.1.0.
- Colord.Profile.props.scope¶
-
The profile scope, e.g.
Colord.ObjectScope.TEMP
.New in version 0.1.10.
- Colord.Profile.props.title¶
-
The profile title.
New in version 0.1.0.