QColor

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

CLASS REFERENCE
Source: /harbour/contrib/hbqt/TQColor.prg
http://doc.trolltech.com/4.5/qcolor.htm

IMPORTANT:  Call the constructor with exact number of parameter. 
            No defaults, otherwise application will GPF

oColor := QColor():new()                       // You will supply other parameter later
oColor := QColor():new( nQt_Color )            // R: hbqt.ch
oColor := QColor():new( nRGB )                 // ( nR + ( nG * 256 ) + ( nB * 256 * 256 ) )
oColor := QColor():new( cColorName )           // #RRGGBB
oColor := QColor():new( pQColor )              // Pointer to previously obtained QColor
oColor := QColor():new( nR, nG, nB )           // Red Green Blue values
oColor := QColor():new( nR, nG, nB, nAlpha )   // Red Green Blue values with Alpha Channel
oColor : alpha() nInt
oColor : alphaF() nQreal
oColor : black() nInt
oColor : blackF() nQreal
oColor : blue() nInt
oColor : blueF() nQreal
oColor : cyan() nInt
oColor : cyanF() nQreal
oColor : getCmyk( @nC, @nM, @nY, @nK, @nA ) NIL
oColor : getCmykF( @nC, @nM, @nY, @nK, @nA ) NIL
oColor : getHsv( @nH, @nS, @nV, @nA ) NIL
oColor : getHsvF( @nH, @nS, @nV, @nA ) NIL
oColor : getRgb( @nR, @nG, @nB, @nA ) NIL
oColor : getRgbF( @nR, @nG, @nB, @nA ) NIL
oColor : green() nInt
oColor : greenF() nQreal
oColor : hue() nInt
oColor : hueF() nQreal
oColor : isValid() lBool
oColor : magenta() nInt
oColor : magentaF() nQreal
oColor : name() cQString
oColor : red() nInt
oColor : redF() nQreal
oColor : rgb() nQRgb
oColor : rgba() nQRgb
oColor : saturation() nInt
oColor : saturationF() nQreal
oColor : setAlpha( nAlpha ) NIL
oColor : setAlphaF( nAlpha ) NIL
oColor : setBlue( nBlue ) NIL
oColor : setBlueF( nBlue ) NIL
oColor : setCmyk( nC, nM, nY, nK, nA ) NIL
oColor : setCmykF( nC, nM, nY, nK, nA ) NIL
oColor : setGreen( nGreen ) NIL
oColor : setGreenF( nGreen ) NIL
oColor : setHsv( nH, nS, nV, nA ) NIL
oColor : setHsvF( nH, nS, nV, nA ) NIL
oColor : setNamedColor( cName ) NIL
oColor : setRed( nRed ) NIL
oColor : setRedF( nRed ) NIL
oColor : setRgb( nRgb ) NIL
oColor : setRgb_1( nR, nG, nB, nA ) NIL
oColor : setRgba( nRgba ) NIL
oColor : setRgbF( nR, nG, nB, nA ) NIL
oColor : spec() nSpec
oColor : value() nInt
oColor : valueF() nQreal
oColor : yellow() nInt
oColor : yellowF() nQreal
oColor : colorNames() pQStringList
FUNCTIONS REFERENCE
Source: /harbour/contrib/hbqt/QColor.cpp
Qt_QColor_alpha( pQColor )nInt
Qt_QColor_alphaF( pQColor )nQreal
Qt_QColor_black( pQColor )nInt
Qt_QColor_blackF( pQColor )nQreal
Qt_QColor_blue( pQColor )nInt
Qt_QColor_blueF( pQColor )nQreal
Qt_QColor_convertTo( pQColor, nColorSpec )pQColor
Qt_QColor_cyan( pQColor )nInt
Qt_QColor_cyanF( pQColor )nQreal
Qt_QColor_darker( pQColor, nFactor )pQColor
Qt_QColor_getCmyk( pQColor, @nC, @nM, @nY, @nK, @nA )NIL
Qt_QColor_getCmykF( pQColor, @nC, @nM, @nY, @nK, @nA )NIL
Qt_QColor_getHsv( pQColor, @nH, @nS, @nV, @nA )NIL
Qt_QColor_getHsvF( pQColor, @nH, @nS, @nV, @nA )NIL
Qt_QColor_getRgb( pQColor, @nR, @nG, @nB, @nA )NIL
Qt_QColor_getRgbF( pQColor, @nR, @nG, @nB, @nA )NIL
Qt_QColor_green( pQColor )nInt
Qt_QColor_greenF( pQColor )nQreal
Qt_QColor_hue( pQColor )nInt
Qt_QColor_hueF( pQColor )nQreal
Qt_QColor_isValid( pQColor )lBool
Qt_QColor_lighter( pQColor, nFactor )pQColor
Qt_QColor_magenta( pQColor )nInt
Qt_QColor_magentaF( pQColor )nQreal
Qt_QColor_name( pQColor )cQString
Qt_QColor_red( pQColor )nInt
Qt_QColor_redF( pQColor )nQreal
Qt_QColor_rgb( pQColor )nQRgb
Qt_QColor_rgba( pQColor )nQRgb
Qt_QColor_saturation( pQColor )nInt
Qt_QColor_saturationF( pQColor )nQreal
Qt_QColor_setAlpha( pQColor, nAlpha )NIL
Qt_QColor_setAlphaF( pQColor, nAlpha )NIL
Qt_QColor_setBlue( pQColor, nBlue )NIL
Qt_QColor_setBlueF( pQColor, nBlue )NIL
Qt_QColor_setCmyk( pQColor, nC, nM, nY, nK, nA )NIL
Qt_QColor_setCmykF( pQColor, nC, nM, nY, nK, nA )NIL
Qt_QColor_setGreen( pQColor, nGreen )NIL
Qt_QColor_setGreenF( pQColor, nGreen )NIL
Qt_QColor_setHsv( pQColor, nH, nS, nV, nA )NIL
Qt_QColor_setHsvF( pQColor, nH, nS, nV, nA )NIL
Qt_QColor_setNamedColor( pQColor, cName )NIL
Qt_QColor_setRed( pQColor, nRed )NIL
Qt_QColor_setRedF( pQColor, nRed )NIL
Qt_QColor_setRgb( pQColor, nRgb )NIL
Qt_QColor_setRgb_1( pQColor, nR, nG, nB, nA )NIL
Qt_QColor_setRgba( pQColor, nRgba )NIL
Qt_QColor_setRgbF( pQColor, nR, nG, nB, nA )NIL
Qt_QColor_spec( pQColor )nSpec
Qt_QColor_toCmyk( pQColor )pQColor
Qt_QColor_toHsv( pQColor )pQColor
Qt_QColor_toRgb( pQColor )pQColor
Qt_QColor_value( pQColor )nInt
Qt_QColor_valueF( pQColor )nQreal
Qt_QColor_yellow( pQColor )nInt
Qt_QColor_yellowF( pQColor )nQreal
Qt_QColor_colorNames( pQColor )pQStringList
Qt_QColor_fromCmyk( pQColor, nC, nM, nY, nK, nA )pQColor
Qt_QColor_fromCmykF( pQColor, nC, nM, nY, nK, nA )pQColor
Qt_QColor_fromHsv( pQColor, nH, nS, nV, nA )pQColor
Qt_QColor_fromHsvF( pQColor, nH, nS, nV, nA )pQColor
Qt_QColor_fromRgb( pQColor, nRgb )pQColor
Qt_QColor_fromRgb_1( pQColor, nR, nG, nB, nA )pQColor
Qt_QColor_fromRgbF( pQColor, nR, nG, nB, nA )pQColor
Qt_QColor_fromRgba( pQColor, nRgba )pQColor