ViewPrivate.h: minor cleanup, no functional change.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2008, Haiku.
|
* Copyright 2003-2015, Haiku.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
#include <ServerProtocolStructs.h>
|
#include <ServerProtocolStructs.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
|
|
||||||
|
|
||||||
const static uint32 kDeleteReplicant = 'JAHA';
|
const static uint32 kDeleteReplicant = 'JAHA';
|
||||||
|
|
||||||
const static uint32 kWorkspacesViewFlag = 0x40000000UL;
|
const static uint32 kWorkspacesViewFlag = 0x40000000UL;
|
||||||
@@ -60,9 +61,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int16 ShowLevel()
|
int16 ShowLevel()
|
||||||
{
|
{ return fView->fShowLevel; }
|
||||||
return fView->fShowLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
// defined in View.cpp
|
// defined in View.cpp
|
||||||
bool WillLayout();
|
bool WillLayout();
|
||||||
@@ -74,18 +73,19 @@ public:
|
|||||||
void DeregisterLayoutItem(BLayoutItem* item);
|
void DeregisterLayoutItem(BLayoutItem* item);
|
||||||
|
|
||||||
bool RemoveSelf()
|
bool RemoveSelf()
|
||||||
{
|
{ return fView->_RemoveSelf(); }
|
||||||
return fView->_RemoveSelf();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
private:
|
||||||
BView* fView;
|
BView* fView;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
class PortLink;
|
class PortLink;
|
||||||
|
|
||||||
|
|
||||||
class ViewState {
|
class ViewState {
|
||||||
public:
|
public:
|
||||||
ViewState();
|
ViewState();
|
||||||
@@ -146,12 +146,14 @@ class ViewState {
|
|||||||
BRect print_rect;
|
BRect print_rect;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
ViewState::IsValid(uint32 bit) const
|
ViewState::IsValid(uint32 bit) const
|
||||||
{
|
{
|
||||||
return valid_flags & bit;
|
return valid_flags & bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
ViewState::IsAllValid() const
|
ViewState::IsAllValid() const
|
||||||
{
|
{
|
||||||
@@ -159,8 +161,10 @@ ViewState::IsAllValid() const
|
|||||||
== (B_VIEW_ALL_BITS & ~B_VIEW_CLIP_REGION_BIT);
|
== (B_VIEW_ALL_BITS & ~B_VIEW_CLIP_REGION_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace BPrivate
|
} // namespace BPrivate
|
||||||
|
|
||||||
|
|
||||||
struct _array_data_{
|
struct _array_data_{
|
||||||
// the max number of points in the array
|
// the max number of points in the array
|
||||||
uint32 maxCount;
|
uint32 maxCount;
|
||||||
@@ -170,4 +174,5 @@ struct _array_data_{
|
|||||||
ViewLineArrayInfo* array;
|
ViewLineArrayInfo* array;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* VIEW_PRIVATE_H */
|
#endif /* VIEW_PRIVATE_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user