API reference - Class QColorNotation used in Ruby API documentation Description: Binding of QColor Sub-classes: Spec
Public constructors
Public methods
Public static methods and constants
Deprecated methods (protected, public, static, non-static and constructors)
Detailed description[const] bool !=(const QColor c)Description: Method bool QColor::operator!=(const QColor &c) [const] bool ==(const QColor c)Description: Method bool QColor::operator==(const QColor &c) [static,const] new QColor_Spec ptr CmykDescription: Enum constant QColor::Cmyk [static,const] new QColor_Spec ptr HslDescription: Enum constant QColor::Hsl [static,const] new QColor_Spec ptr HsvDescription: Enum constant QColor::Hsv [static,const] new QColor_Spec ptr InvalidDescription: Enum constant QColor::Invalid [static,const] new QColor_Spec ptr RgbDescription: Enum constant QColor::Rgb void _assign(const QColor other)Description: Assigns another object to self void _createDescription: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. void _destroyDescription: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. [const] bool _destroyed?Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. [const] bool _is_const_object?Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. void _manageDescription: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. void _unmanageDescription: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. [const] int alphaDescription: Method int QColor::alpha() Python specific notes:The object exposes a readable attribute 'alpha'. This is the getter. void alpha=(int alpha)Description: Method void QColor::setAlpha(int alpha) Python specific notes:The object exposes a writable attribute 'alpha'. This is the setter. [const] double alphaFDescription: Method double QColor::alphaF() Python specific notes:The object exposes a readable attribute 'alphaF'. This is the getter. void alphaF=(double alpha)Description: Method void QColor::setAlphaF(double alpha) Python specific notes:The object exposes a writable attribute 'alphaF'. This is the setter. QColor assign(const QColor arg1)Description: Method QColor &QColor::operator=(const QColor &) QColor assign(const Qt_GlobalColor color)Description: Method QColor &QColor::operator=(Qt::GlobalColor color) [const] int blackDescription: Method int QColor::black() [const] double blackFDescription: Method double QColor::blackF() [const] int blueDescription: Method int QColor::blue() Python specific notes:The object exposes a readable attribute 'blue'. This is the getter. void blue=(int blue)Description: Method void QColor::setBlue(int blue) Python specific notes:The object exposes a writable attribute 'blue'. This is the setter. [const] double blueFDescription: Method double QColor::blueF() Python specific notes:The object exposes a readable attribute 'blueF'. This is the getter. void blueF=(double blue)Description: Method void QColor::setBlueF(double blue) Python specific notes:The object exposes a writable attribute 'blueF'. This is the setter. [static] string[] colorNamesDescription: Static method QStringList QColor::colorNames() This method is static and can be called without an instance. [const] QColor convertTo(const QColor_Spec colorSpec)Description: Method QColor QColor::convertTo(QColor::Spec colorSpec) void createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [const] int cyanDescription: Method int QColor::cyan() [const] double cyanFDescription: Method double QColor::cyanF() [const] QColor dark(int f = 200)Description: Method QColor QColor::dark(int f) [const] QColor darker(int f = 200)Description: Method QColor QColor::darker(int f) void destroyDescription: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead [const] bool destroyed?Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead [const] new QColor ptr dupDescription: Creates a copy of self [static] QColor fromCmyk(int c,int m,int y,int k,int a = 255)Description: Static method QColor QColor::fromCmyk(int c, int m, int y, int k, int a) This method is static and can be called without an instance. [static] QColor fromCmykF(double c,double m,double y,double k,double a = 1.0)Description: Static method QColor QColor::fromCmykF(double c, double m, double y, double k, double a) This method is static and can be called without an instance. [static] QColor fromHsl(int h,int s,int l,int a = 255)Description: Static method QColor QColor::fromHsl(int h, int s, int l, int a) This method is static and can be called without an instance. [static] QColor fromHslF(double h,double s,double l,double a = 1.0)Description: Static method QColor QColor::fromHslF(double h, double s, double l, double a) This method is static and can be called without an instance. [static] QColor fromHsv(int h,int s,int v,int a = 255)Description: Static method QColor QColor::fromHsv(int h, int s, int v, int a) This method is static and can be called without an instance. [static] QColor fromHsvF(double h,double s,double v,double a = 1.0)Description: Static method QColor QColor::fromHsvF(double h, double s, double v, double a) This method is static and can be called without an instance. [static] QColor fromRgb(unsigned int rgb)Description: Static method QColor QColor::fromRgb(unsigned int rgb) This method is static and can be called without an instance. [static] QColor fromRgb(int r,int g,int b,int a = 255)Description: Static method QColor QColor::fromRgb(int r, int g, int b, int a) This method is static and can be called without an instance. [static] QColor fromRgbF(double r,double g,double b,double a = 1.0)Description: Static method QColor QColor::fromRgbF(double r, double g, double b, double a) This method is static and can be called without an instance. [static] QColor fromRgba(unsigned int rgba)Description: Static method QColor QColor::fromRgba(unsigned int rgba) This method is static and can be called without an instance. void getCmyk(int ptr c,int ptr m,int ptr y,int ptr k,int ptr a = 0)Description: Method void QColor::getCmyk(int *c, int *m, int *y, int *k, int *a) void getCmykF(double ptr c,double ptr m,double ptr y,double ptr k,double ptr a = 0)Description: Method void QColor::getCmykF(double *c, double *m, double *y, double *k, double *a) [const] void getHsl(int ptr h,int ptr s,int ptr l,int ptr a = 0)Description: Method void QColor::getHsl(int *h, int *s, int *l, int *a) [const] void getHslF(double ptr h,double ptr s,double ptr l,double ptr a = 0)Description: Method void QColor::getHslF(double *h, double *s, double *l, double *a) [const] void getHsv(int ptr h,int ptr s,int ptr v,int ptr a = 0)Description: Method void QColor::getHsv(int *h, int *s, int *v, int *a) [const] void getHsvF(double ptr h,double ptr s,double ptr v,double ptr a = 0)Description: Method void QColor::getHsvF(double *h, double *s, double *v, double *a) [const] void getRgb(int ptr r,int ptr g,int ptr b,int ptr a = 0)Description: Method void QColor::getRgb(int *r, int *g, int *b, int *a) [const] void getRgbF(double ptr r,double ptr g,double ptr b,double ptr a = 0)Description: Method void QColor::getRgbF(double *r, double *g, double *b, double *a) [const] int greenDescription: Method int QColor::green() Python specific notes:The object exposes a readable attribute 'green'. This is the getter. void green=(int green)Description: Method void QColor::setGreen(int green) Python specific notes:The object exposes a writable attribute 'green'. This is the setter. [const] double greenFDescription: Method double QColor::greenF() Python specific notes:The object exposes a readable attribute 'greenF'. This is the getter. void greenF=(double green)Description: Method void QColor::setGreenF(double green) Python specific notes:The object exposes a writable attribute 'greenF'. This is the setter. [const] int hslHueDescription: Method int QColor::hslHue() [const] double hslHueFDescription: Method double QColor::hslHueF() [const] int hslSaturationDescription: Method int QColor::hslSaturation() [const] double hslSaturationFDescription: Method double QColor::hslSaturationF() [const] int hsvHueDescription: Method int QColor::hsvHue() [const] double hsvHueFDescription: Method double QColor::hsvHueF() [const] int hsvSaturationDescription: Method int QColor::hsvSaturation() [const] double hsvSaturationFDescription: Method double QColor::hsvSaturationF() [const] int hueDescription: Method int QColor::hue() [const] double hueFDescription: Method double QColor::hueF() [const] bool isValid?Description: Method bool QColor::isValid() [const] bool is_const_object?Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead [const] QColor light(int f = 150)Description: Method QColor QColor::light(int f) [const] QColor lighter(int f = 150)Description: Method QColor QColor::lighter(int f) [const] int lightnessDescription: Method int QColor::lightness() [const] double lightnessFDescription: Method double QColor::lightnessF() [const] int magentaDescription: Method int QColor::magenta() [const] double magentaFDescription: Method double QColor::magentaF() [const] string nameDescription: Method QString QColor::name() [static] new QColor newDescription: Constructor QColor::QColor() This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(const Qt_GlobalColor color)Description: Constructor QColor::QColor(Qt::GlobalColor color) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(int r,int g,int b,int a = 255)Description: Constructor QColor::QColor(int r, int g, int b, int a) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(unsigned int rgb)Description: Constructor QColor::QColor(unsigned int rgb) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(string name)Description: Constructor QColor::QColor(const char *name) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(const QColor color)Description: Constructor QColor::QColor(const QColor &color) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [static] new QColor new(const QColor_Spec spec)Description: Constructor QColor::QColor(QColor::Spec spec) This method creates an object of class QColor. Python specific notes:This method is the default initializer of the object [const] int redDescription: Method int QColor::red() Python specific notes:The object exposes a readable attribute 'red'. This is the getter. void red=(int red)Description: Method void QColor::setRed(int red) Python specific notes:The object exposes a writable attribute 'red'. This is the setter. [const] double redFDescription: Method double QColor::redF() Python specific notes:The object exposes a readable attribute 'redF'. This is the getter. void redF=(double red)Description: Method void QColor::setRedF(double red) Python specific notes:The object exposes a writable attribute 'redF'. This is the setter. [const] unsigned int rgbDescription: Method unsigned int QColor::rgb() Python specific notes:The object exposes a readable attribute 'rgb'. This is the getter. void rgb=(unsigned int rgb)Description: Method void QColor::setRgb(unsigned int rgb) Python specific notes:The object exposes a writable attribute 'rgb'. This is the setter. [const] unsigned int rgbaDescription: Method unsigned int QColor::rgba() Python specific notes:The object exposes a readable attribute 'rgba'. This is the getter. void rgba=(unsigned int rgba)Description: Method void QColor::setRgba(unsigned int rgba) Python specific notes:The object exposes a writable attribute 'rgba'. This is the setter. [const] int saturationDescription: Method int QColor::saturation() [const] double saturationFDescription: Method double QColor::saturationF() void setAlpha(int alpha)Description: Method void QColor::setAlpha(int alpha) Python specific notes:The object exposes a writable attribute 'alpha'. This is the setter. void setAlphaF(double alpha)Description: Method void QColor::setAlphaF(double alpha) Python specific notes:The object exposes a writable attribute 'alphaF'. This is the setter. void setBlue(int blue)Description: Method void QColor::setBlue(int blue) Python specific notes:The object exposes a writable attribute 'blue'. This is the setter. void setBlueF(double blue)Description: Method void QColor::setBlueF(double blue) Python specific notes:The object exposes a writable attribute 'blueF'. This is the setter. void setCmyk(int c,int m,int y,int k,int a = 255)Description: Method void QColor::setCmyk(int c, int m, int y, int k, int a) void setCmykF(double c,double m,double y,double k,double a = 1.0)Description: Method void QColor::setCmykF(double c, double m, double y, double k, double a) void setGreen(int green)Description: Method void QColor::setGreen(int green) Python specific notes:The object exposes a writable attribute 'green'. This is the setter. void setGreenF(double green)Description: Method void QColor::setGreenF(double green) Python specific notes:The object exposes a writable attribute 'greenF'. This is the setter. void setHsl(int h,int s,int l,int a = 255)Description: Method void QColor::setHsl(int h, int s, int l, int a) void setHslF(double h,double s,double l,double a = 1.0)Description: Method void QColor::setHslF(double h, double s, double l, double a) void setHsv(int h,int s,int v,int a = 255)Description: Method void QColor::setHsv(int h, int s, int v, int a) void setHsvF(double h,double s,double v,double a = 1.0)Description: Method void QColor::setHsvF(double h, double s, double v, double a) void setNamedColor(string name)Description: Method void QColor::setNamedColor(const QString &name) void setRed(int red)Description: Method void QColor::setRed(int red) Python specific notes:The object exposes a writable attribute 'red'. This is the setter. void setRedF(double red)Description: Method void QColor::setRedF(double red) Python specific notes:The object exposes a writable attribute 'redF'. This is the setter. void setRgb(int r,int g,int b,int a = 255)Description: Method void QColor::setRgb(int r, int g, int b, int a) void setRgb(unsigned int rgb)Description: Method void QColor::setRgb(unsigned int rgb) Python specific notes:The object exposes a writable attribute 'rgb'. This is the setter. void setRgbF(double r,double g,double b,double a = 1.0)Description: Method void QColor::setRgbF(double r, double g, double b, double a) void setRgba(unsigned int rgba)Description: Method void QColor::setRgba(unsigned int rgba) Python specific notes:The object exposes a writable attribute 'rgba'. This is the setter. [const] QColor_Spec specDescription: Method QColor::Spec QColor::spec() [const] QColor toCmykDescription: Method QColor QColor::toCmyk() [const] QColor toHslDescription: Method QColor QColor::toHsl() [const] QColor toHsvDescription: Method QColor QColor::toHsv() [const] QColor toRgbDescription: Method QColor QColor::toRgb() [const] int valueDescription: Method int QColor::value() [const] double valueFDescription: Method double QColor::valueF() [const] int yellowDescription: Method int QColor::yellow() [const] double yellowFDescription: Method double QColor::yellowF() |