Made _SetFocus hook function an optional function

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3921 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-07-09 20:40:10 +00:00
parent c73b41b97f
commit b951412ea7
2 changed files with 12 additions and 2 deletions

View File

@ -551,3 +551,13 @@ click_type Decorator::Clicked(BPoint pt, int32 buttons, int32 modifiers)
return CLICK_NONE;
}
//! Hook function called when the decorator changes focus
void Decorator::_SetFocus(void)
{
}
//! Function for calculating layout for the decorator
void Decorator::_DoLayout(void)
{
}

View File

@ -108,8 +108,8 @@ protected:
virtual void _DrawTab(BRect r);
virtual void _DrawTitle(BRect r);
virtual void _DrawZoom(BRect r);
virtual void _SetFocus(void)=0;
virtual void _DoLayout(void)=0;
virtual void _SetFocus(void);
virtual void _DoLayout(void);
virtual void _SetColors(void);
ColorSet *_colors;