added some convinience functions to handle rgb_color additionally to RGBColor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10898 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -179,6 +179,35 @@ void PatternHandler::SetLowColor(const RGBColor& color)
|
||||
fLowColor = color;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Set the colors for the pattern to use
|
||||
\param high High color for the handler
|
||||
\param low Low color for the handler
|
||||
*/
|
||||
void PatternHandler::SetColors(const rgb_color& high, const rgb_color& low)
|
||||
{
|
||||
fHighColor = high;
|
||||
fLowColor = low;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Set the high color for the pattern to use
|
||||
\param color High color for the handler
|
||||
*/
|
||||
void PatternHandler::SetHighColor(const rgb_color& color)
|
||||
{
|
||||
fHighColor = color;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Set the low color for the pattern to use
|
||||
\param color Low color for the handler
|
||||
*/
|
||||
void PatternHandler::SetLowColor(const rgb_color& color)
|
||||
{
|
||||
fLowColor = color;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Obtains the color in the pattern at the specified coordinates
|
||||
\param pt Coordinates to get the color for
|
||||
|
||||
Reference in New Issue
Block a user