diff --git a/headers/private/interface/ViewPrivate.h b/headers/private/interface/ViewPrivate.h index a9073d4edd..7d642d7836 100644 --- a/headers/private/interface/ViewPrivate.h +++ b/headers/private/interface/ViewPrivate.h @@ -1,5 +1,5 @@ /* - * Copyright 2003-2008, Haiku. + * Copyright 2003-2015, Haiku. * Distributed under the terms of the MIT License. * * Authors: @@ -18,6 +18,7 @@ #include #include + const static uint32 kDeleteReplicant = 'JAHA'; const static uint32 kWorkspacesViewFlag = 0x40000000UL; @@ -53,39 +54,38 @@ enum { class BView::Private { public: - Private(BView* view) - : - fView(view) - { - } + Private(BView* view) + : + fView(view) + { + } - int16 ShowLevel() - { - return fView->fShowLevel; - } + int16 ShowLevel() + { return fView->fShowLevel; } - // defined in View.cpp - bool WillLayout(); - bool MinMaxValid(); + // defined in View.cpp + bool WillLayout(); + bool MinMaxValid(); - BLayoutItem* LayoutItemAt(int32 index); - int32 CountLayoutItems(); - void RegisterLayoutItem(BLayoutItem* item); - void DeregisterLayoutItem(BLayoutItem* item); + BLayoutItem* LayoutItemAt(int32 index); + int32 CountLayoutItems(); + void RegisterLayoutItem(BLayoutItem* item); + void DeregisterLayoutItem(BLayoutItem* item); - bool RemoveSelf() - { - return fView->_RemoveSelf(); - } + bool RemoveSelf() + { return fView->_RemoveSelf(); } - BView* fView; +private: + BView* fView; }; namespace BPrivate { + class PortLink; + class ViewState { public: ViewState(); @@ -146,12 +146,14 @@ class ViewState { BRect print_rect; }; + inline bool ViewState::IsValid(uint32 bit) const { return valid_flags & bit; } + inline bool ViewState::IsAllValid() const { @@ -159,8 +161,10 @@ ViewState::IsAllValid() const == (B_VIEW_ALL_BITS & ~B_VIEW_CLIP_REGION_BIT); } + } // namespace BPrivate + struct _array_data_{ // the max number of points in the array uint32 maxCount; @@ -170,4 +174,5 @@ struct _array_data_{ ViewLineArrayInfo* array; }; + #endif /* VIEW_PRIVATE_H */