Public Member Functions | Protected Member Functions | List of all members
BAbstractLayoutItem Class Reference

Undocumented class. More...

Inherits BLayoutItem.

Public Member Functions

 BAbstractLayoutItem ()
 Undocumented public method. More...
 
 BAbstractLayoutItem (BMessage *from)
 Undocumented public method. More...
 
virtual ~BAbstractLayoutItem ()
 Undocumented public method. More...
 
virtual BAlignment Alignment ()
 Undocumented public method. More...
 
virtual status_t Archive (BMessage *into, bool deep=true) const
 Undocumented public method. More...
 
virtual BAlignment BaseAlignment ()
 Undocumented public method. More...
 
virtual BSize BaseMaxSize ()
 Undocumented public method. More...
 
virtual BSize BaseMinSize ()
 Undocumented public method. More...
 
virtual BSize BasePreferredSize ()
 Undocumented public method. More...
 
virtual BSize MaxSize ()
 Undocumented public method. More...
 
virtual BSize MinSize ()
 Undocumented public method. More...
 
virtual status_t Perform (perform_code d, void *arg)
 Undocumented public method. More...
 
virtual BSize PreferredSize ()
 Undocumented public method. More...
 
virtual void SetExplicitAlignment (BAlignment alignment)
 Undocumented public method. More...
 
virtual void SetExplicitMaxSize (BSize size)
 Undocumented public method. More...
 
virtual void SetExplicitMinSize (BSize size)
 Undocumented public method. More...
 
virtual void SetExplicitPreferredSize (BSize size)
 Undocumented public method. More...
 
- Public Member Functions inherited from BLayoutItem
 BLayoutItem (BMessage *from)
 Archive constructor. More...
 
BLayoutLayout () const
 Returns the BLayout this BLayoutItem resides in. More...
 
virtual BViewView ()
 Return the BView this item is representing, or NULL if it does not represent any view. More...
 
virtual bool HasHeightForWidth ()
 Returns whether or not this BLayoutItem's height constraints are dependent on its width. More...
 
virtual void GetHeightForWidth (float width, float *min, float *max, float *preferred)
 Get this BLayoutItem's height constraints for a given width. More...
 
virtual bool IsVisible ()=0
 Return the current local visibility of this item. If an item is not visible, it will not be given space by the BLayout it resides in. More...
 
virtual void SetVisible (bool visible)=0
 Set the local visibility of this item. More...
 
virtual BRect Frame ()=0
 Return the bounding frame of this item. More...
 
virtual void SetFrame (BRect frame)=0
 Set the bounding frame of this item. More...
 
void AlignInFrame (BRect frame)
 Position this BLayoutItem within frame, given the value returned by Alignment(), and the size constraints for this item. More...
 
virtual void InvalidateLayout (bool children=false)
 Invalidate the layout of this item, or the object it represents. More...
 
virtual void Relayout (bool immediate=false)
 Relayout any children or onscreen data this item contains. Often this request is forwarded to another object. More...
 
void * LayoutData () const
 Retrieve arbitrary data attached to this BLayoutItem. More...
 
void SetLayoutData (void *data)
 Attach arbitrary data to this BLayoutItem. More...
 
- Public Member Functions inherited from BArchivable
 BArchivable (BMessage *from)
 Constructor. Does important behind-the-scenes work in the unarchiving process. More...
 
 BArchivable ()
 Constructor. Does nothing. More...
 
virtual ~BArchivable ()
 Destructor. Does nothing. More...
 

Protected Member Functions

virtual status_t AllArchived (BMessage *archive) const
 Undocumented protected method. More...
 
virtual status_t AllUnarchived (const BMessage *archive)
 Undocumented protected method. More...
 
virtual void AncestorVisibilityChanged (bool shown)
 Undocumented protected method. More...
 
virtual void AttachedToLayout ()
 Undocumented protected method. More...
 
virtual void DetachedFromLayout (BLayout *layout)
 Undocumented protected method. More...
 
virtual void LayoutInvalidated (bool children)
 Undocumented protected method. More...
 
Hook methods

Additional Inherited Members

- Static Public Member Functions inherited from BArchivable
static BArchivableInstantiate (BMessage *archive)
 Static member to restore objects from messages. More...
 

Detailed Description

Undocumented class.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BAbstractLayoutItem() [1/2]

BAbstractLayoutItem::BAbstractLayoutItem ( )

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BAbstractLayoutItem() [2/2]

BAbstractLayoutItem::BAbstractLayoutItem ( BMessage from)

Undocumented public method.

Parameters
fromUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ ~BAbstractLayoutItem()

BAbstractLayoutItem::~BAbstractLayoutItem ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Member Function Documentation

◆ Alignment()

BAlignment BAbstractLayoutItem::Alignment ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BLayoutItem.

◆ AllArchived()

status_t BAbstractLayoutItem::AllArchived ( BMessage archive) const
protectedvirtual

Undocumented protected method.

Parameters
archiveUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ AllUnarchived()

status_t BAbstractLayoutItem::AllUnarchived ( const BMessage archive)
protectedvirtual

Undocumented protected method.

Parameters
archiveUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ AncestorVisibilityChanged()

void BAbstractLayoutItem::AncestorVisibilityChanged ( bool  shown)
protectedvirtual

Undocumented protected method.

Parameters
shownUndocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ Archive()

status_t BAbstractLayoutItem::Archive ( BMessage into,
bool  deep = true 
) const
virtual

Undocumented public method.

Parameters
intoUndocumented
deepUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ AttachedToLayout()

void BAbstractLayoutItem::AttachedToLayout ( )
protectedvirtual

Undocumented protected method.

Since
Haiku R1

Reimplemented from BLayoutItem.

◆ BaseAlignment()

BAlignment BAbstractLayoutItem::BaseAlignment ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BaseMaxSize()

BSize BAbstractLayoutItem::BaseMaxSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BaseMinSize()

BSize BAbstractLayoutItem::BaseMinSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BasePreferredSize()

BSize BAbstractLayoutItem::BasePreferredSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ DetachedFromLayout()

void BAbstractLayoutItem::DetachedFromLayout ( BLayout layout)
protectedvirtual

Undocumented protected method.

Parameters
layoutUndocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ LayoutInvalidated()

void BAbstractLayoutItem::LayoutInvalidated ( bool  children)
protectedvirtual

Undocumented protected method.

Parameters
childrenUndocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ MaxSize()

BSize BAbstractLayoutItem::MaxSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BLayoutItem.

◆ MinSize()

BSize BAbstractLayoutItem::MinSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BLayoutItem.

◆ Perform()

status_t BAbstractLayoutItem::Perform ( perform_code  d,
void *  arg 
)
virtual

Undocumented public method.

Parameters
dUndocumented
argUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BLayoutItem.

◆ PreferredSize()

BSize BAbstractLayoutItem::PreferredSize ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BLayoutItem.

◆ SetExplicitAlignment()

void BAbstractLayoutItem::SetExplicitAlignment ( BAlignment  alignment)
virtual

Undocumented public method.

Parameters
alignmentUndocumented
Since
Haiku R1

Implements BLayoutItem.

◆ SetExplicitMaxSize()

void BAbstractLayoutItem::SetExplicitMaxSize ( BSize  size)
virtual

Undocumented public method.

Parameters
sizeUndocumented
Since
Haiku R1

Implements BLayoutItem.

◆ SetExplicitMinSize()

void BAbstractLayoutItem::SetExplicitMinSize ( BSize  size)
virtual

Undocumented public method.

Parameters
sizeUndocumented
Since
Haiku R1

Implements BLayoutItem.

◆ SetExplicitPreferredSize()

void BAbstractLayoutItem::SetExplicitPreferredSize ( BSize  size)
virtual

Undocumented public method.

Parameters
sizeUndocumented
Since
Haiku R1

Implements BLayoutItem.