|
Krita Source Code Documentation
|
The KisColorManager class can be used as a cross-platform way to get the display profile associated with a device. More...
#include <kis_color_manager.h>
Inheritance diagram for KisColorManager:Classes | |
| class | Private |
Public Types | |
| enum | DeviceType { screen , printer , camera , scanner } |
Signals | |
| void | changed (const QString device) |
Public Member Functions | |
| QString | deviceName (const QString &id) |
| Return the user-visible name for the given device. | |
| QStringList | devices (DeviceType type=screen) const |
| Return a list of device id's for the specified type. | |
| QByteArray | displayProfile (const QString &device, int profile=0) const |
| Return the icc profile for the given device and index (if a device has more than one profile) | |
| KisColorManager () | |
| ~KisColorManager () override | |
Static Public Member Functions | |
| static KisColorManager * | instance () |
Private Member Functions | |
| KisColorManager (const KisColorManager &) | |
| KisColorManager | operator= (const KisColorManager &) |
Private Attributes | |
| const Private *const | d |
The KisColorManager class can be used as a cross-platform way to get the display profile associated with a device.
TODO: support other devices than monitors
Definition at line 21 of file kis_color_manager.h.
|
explicit |
Definition at line 17 of file kis_color_manager.cpp.
|
override |
|
private |
|
signal |
| QString KisColorManager::deviceName | ( | const QString & | id | ) |
Return the user-visible name for the given device.
Definition at line 28 of file kis_color_manager.cpp.
| QStringList KisColorManager::devices | ( | DeviceType | type = screen | ) | const |
Return a list of device id's for the specified type.
Definition at line 33 of file kis_color_manager.cpp.
| QByteArray KisColorManager::displayProfile | ( | const QString & | device, |
| int | profile = 0 ) const |
Return the icc profile for the given device and index (if a device has more than one profile)
Definition at line 38 of file kis_color_manager.cpp.
|
static |
Definition at line 43 of file kis_color_manager.cpp.
|
private |
|
private |
Definition at line 59 of file kis_color_manager.h.