Madee _SetFocus an optional hook function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3922 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b951412ea7
commit
4b51f076d6
@ -45,7 +45,7 @@ Decorator::Decorator(BRect rect, int32 wlook, int32 wfeel, int32 wflags)
|
||||
_minimize_state=false;
|
||||
_zoom_state=false;
|
||||
_has_focus=false;
|
||||
_title_string=new BString("");
|
||||
_title_string=new BString;
|
||||
_driver=NULL;
|
||||
|
||||
_closerect.Set(0,0,1,1);
|
||||
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user