OBOS-only system colors are loaded and used

Added _SetColors() hook function to Decorator API


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3889 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-07-07 13:09:42 +00:00
parent d5d9cf4017
commit dae7413e8a
5 changed files with 29 additions and 9 deletions
+12
View File
@@ -44,6 +44,7 @@ Decorator::Decorator(BRect rect, int32 wlook, int32 wfeel, int32 wflags)
_close_state=false;
_minimize_state=false;
_zoom_state=false;
_has_focus=false;
_title_string=new BString;
_driver=NULL;
@@ -84,6 +85,7 @@ Decorator::~Decorator(void)
void Decorator::SetColors(const ColorSet &cset)
{
_colors->SetColors(cset);
_SetColors();
}
/*!
@@ -486,6 +488,16 @@ void Decorator::_DrawZoom(BRect r)
{
}
/*!
\brief Hook function for when the color set is updated
This function is called after the decorator's color set is updated. Quite useful
if the decorator uses colors based on those in the system.
*/
void Decorator::_SetColors(void)
{
}
/*!
\brief Returns the "footprint" of the entire window, including decorator
\return Region representing the window's screen footprint