Show
Ignore:
Timestamp:
08/15/08 13:25:16 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35774

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/WKAL/Skeletons/Graphics/Color.t

    r318 r437  
    7676RGBA32 makeRGBA(int r, int g, int b, int a); 
    7777 
     78 
     79    /** 
     80     *  colorWithOverrideAlpha 
     81     * @param[in] : color 
     82     * @param[in] : override alpha status 
     83     * @param[out] : rgba quadruplet 
     84     */ 
     85RGBA32 colorWithOverrideAlpha(RGBA32 color, float overrideAlpha); 
     86 
     87 
     88    /** 
     89     * makeRGBA32FromFloats 
     90     * @param[in] : red value 
     91     * @param[in] : green value 
     92     * @param[in] : blue value 
     93     * @param[in] : alpha value 
     94     * @param[out] : rgba quadruplet 
     95     */ 
     96RGBA32 makeRGBA32FromFloats(float r, float g, float b, float a); 
     97 
    7898    /** 
    7999     * make RGBA quadruplet from HSLA 
     
    144164    /** 
    145165     * Color constructor 
     166     * @param[in] : red value 
     167     * @param[in] : green value 
     168     * @param[in] : blue value 
     169     * @param[in] : alpha value 
     170     */ 
     171    Color(float r, float g, float b, float a); 
     172 
     173    /** 
     174     * Color constructor 
    146175     * @param[in] : string 
    147176     * @code 
     
    155184     * @param[in] : string 
    156185     * @code 
    157      * Color *c = new Color(char); 
     186     * Color *c = new Color(s); 
    158187     * @endcode 
    159188     */ 
    160189    explicit Color(const char*); 
    161      
     190 
    162191    /** 
    163192     * get name 
     
    170199 
    171200    /** 
    172      * set named color 
     201     * setNamedColor 
    173202     * @param[in] : color name 
    174      * @code 
    175      * c->setNameColor(name); 
    176      * @endcode 
    177203     */ 
    178204    void setNamedColor(const String&); 
     
    188214 
    189215    /** 
    190      * test if color has alpha  
    191      * @param[out] : true if color has alpha 
    192      * @code 
    193      * bool alpha = c->hasAlpha(); 
    194      * @endcode 
    195      */ 
    196     bool hasAlpha() const ; 
     216     * test if the color has alpha 
     217     */ 
     218    bool hasAlpha() const; 
    197219 
    198220    /** 
     
    204226     */ 
    205227    int red() const ; 
    206  
     228     
    207229    /** 
    208230     * get green value 
    209231     * @param[out] : green value 
    210232     * @code 
    211      * int g = c->green(); 
     233     * int r = c->green(); 
    212234     * @endcode 
    213235     */ 
     
    222244     */ 
    223245    int blue() const ; 
    224  
     246     
    225247    /** 
    226248     * get alpha value 
    227249     * @param[out] : alpha value 
    228250     * @code 
    229      * int a = c->alpha(); 
     251     * int r = c->alpa(); 
    230252     * @endcode 
    231253     */ 
    232254    int alpha() const ; 
    233      
     255 
    234256    /** 
    235257     * get rgba quadruplet 
     
    239261     * @endcode 
    240262     */ 
    241     RGBA32 rgb() const
    242     /** 
    243     * setRGB  
    244     * @param[in] : red value 
    245      * @param[in] : green value 
    246      * @param[in] : blue value 
    247      * @code 
    248      * c->setRGB(255, 0, 0); 
    249      * @endcode 
    250      */ 
    251     void setRGB(int r, int g, int b)
     263    RGBA32 rgb() const
     264 
     265     
     266    /** 
     267     * setRGB 
     268     * @param[in] : rgb color 
     269     * @code 
     270     * c->setRGB(r, g, b); 
     271     * @endcode 
     272     */ 
     273    void setRGB(int r, int g, int b)
    252274 
    253275    /** 
     
    284306    void getRGBA(double& r, double& g, double& b, double& a) const; 
    285307 
    286     /** 
    287      * increase the light  
     308 
     309    /** 
     310     * increase the light 
    288311     * @param[out] : result color 
    289312     * @code 
    290      * Color l = c->light(); 
     313     * Color l = c->light); 
    291314     * @endcode 
    292315     */ 
    293316    Color light() const; 
     317 
    294318    /** 
    295319     * increase the dark 
     
    322346    /** 
    323347     * Color platform constructor 
    324      * @code 
    325      * Color *c = new Color(balColor); 
    326      * @endcode 
    327348     */ 
    328349    Color(const BalColor&); 
     
    350371    bool m_valid; 
    351372}; 
    352  
    353373    /** 
    354374     *  operator== 
     
    362382 
    363383    /** 
    364      * focusRingColor 
     384     * focusRingColor 
    365385     */ 
    366386Color focusRingColor(); 
    367     /** 
    368      *  setFocusRingColorChangeFunction 
     387 
     388    /** 
     389     * setFocusRingColorChangeFunction 
    369390     */ 
    370391void setFocusRingColorChangeFunction(void (*)()); 
    371392 
    372  
    373393} // namespace WKAL 
    374394 
    375395#endif // Color_h 
    376  
    377  
    378  
    379