* Coding style cleanup.
* Made inline getters in SATDecorator const. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39626 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "SATDecorator.h"
|
#include "SATDecorator.h"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
@@ -541,4 +542,3 @@ extern "C" DecorAddOn* (instantiate_decor_addon)(image_id id, const char* name)
|
|||||||
{
|
{
|
||||||
return new (std::nothrow)SATDecorAddOn(id, name);
|
return new (std::nothrow)SATDecorAddOn(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,21 +32,27 @@ protected:
|
|||||||
class SATDecorator : public DefaultDecorator {
|
class SATDecorator : public DefaultDecorator {
|
||||||
public:
|
public:
|
||||||
SATDecorator(DesktopSettings& settings,
|
SATDecorator(DesktopSettings& settings,
|
||||||
BRect frame, window_look look, uint32 flags);
|
BRect frame, window_look look,
|
||||||
|
uint32 flags);
|
||||||
|
|
||||||
void HighlightTab(bool active, BRegion* dirty);
|
void HighlightTab(bool active, BRegion* dirty);
|
||||||
void HighlightBorders(bool active, BRegion* dirty);
|
void HighlightBorders(bool active, BRegion* dirty);
|
||||||
bool IsTabHighlighted() { return fTabHighlighted; }
|
bool IsTabHighlighted() const
|
||||||
bool IsBordersHighlighted() { return fBordersHighlighted; }
|
{ return fTabHighlighted; }
|
||||||
|
bool IsBordersHighlighted() const
|
||||||
|
{ return fBordersHighlighted; }
|
||||||
|
|
||||||
/*! Indicates that window is stacked */
|
/*! Indicates that window is stacked */
|
||||||
void SetStackedMode(bool stacked, BRegion* dirty);
|
void SetStackedMode(bool stacked, BRegion* dirty);
|
||||||
bool StackedMode() { return fStackedMode; };
|
bool StackedMode() const
|
||||||
|
{ return fStackedMode; };
|
||||||
|
|
||||||
/*! Set the tab length if the decorator is in stacked mode and if the
|
/*! Set the tab length if the decorator is in stacked mode and if
|
||||||
tab is the last one in the tab bar. */
|
the tab is the last one in the tab bar. */
|
||||||
void SetStackedTabLength(float length, BRegion* dirty);
|
void SetStackedTabLength(float length,
|
||||||
float StackedTabLength() { return fStackedTabLength; }
|
BRegion* dirty);
|
||||||
|
float StackedTabLength() const
|
||||||
|
{ return fStackedTabLength; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void _DoLayout();
|
void _DoLayout();
|
||||||
@@ -70,4 +76,5 @@ private:
|
|||||||
bool fStackedTabShifting;
|
bool fStackedTabShifting;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user