SkStackViewLayout Class Reference

#include <SkStackViewLayout.h>

Inherits SkView::Layout.

Collaboration diagram for SkStackViewLayout:
[legend]

List of all members.

Public Types

enum  Orient { kHorizontal_Orient, kVertical_Orient, kOrientCount }
enum  Pack { kStart_Pack, kCenter_Pack, kEnd_Pack, kPackCount }
enum  Align {
  kStart_Align, kCenter_Align, kEnd_Align, kStretch_Align,
  kAlignCount
}

Public Member Functions

 SkStackViewLayout ()
Orient getOrient () const
void setOrient (Orient)
void getMargin (SkRect *) const
void setMargin (const SkRect &)
SkScalar getSpacer () const
void setSpacer (SkScalar)
Pack getPack () const
void setPack (Pack)
Align getAlign () const
void setAlign (Align)
bool getRound () const
void setRound (bool)

Protected Member Functions

virtual void onLayoutChildren (SkView *parent)
virtual void onInflate (const SkDOM &, const SkDOM::Node *)

Detailed Description

Definition at line 22 of file SkStackViewLayout.h.


Member Enumeration Documentation

Controls the posititioning at right angles to the orientation

Enumerator:
kStart_Align 
kCenter_Align 
kEnd_Align 
kStretch_Align 
kAlignCount 

Definition at line 55 of file SkStackViewLayout.h.

Enumerator:
kHorizontal_Orient 
kVertical_Orient 
kOrientCount 

Definition at line 26 of file SkStackViewLayout.h.

Controls the posititioning in the same direction as the orientation

Enumerator:
kStart_Pack 
kCenter_Pack 
kEnd_Pack 
kPackCount 

Definition at line 43 of file SkStackViewLayout.h.


Constructor & Destructor Documentation

SkStackViewLayout::SkStackViewLayout (  ) 

Member Function Documentation

Align SkStackViewLayout::getAlign (  )  const [inline]

Definition at line 63 of file SkStackViewLayout.h.

void SkStackViewLayout::getMargin ( SkRect  )  const
Orient SkStackViewLayout::getOrient (  )  const [inline]

Definition at line 32 of file SkStackViewLayout.h.

Pack SkStackViewLayout::getPack (  )  const [inline]

Definition at line 50 of file SkStackViewLayout.h.

bool SkStackViewLayout::getRound (  )  const [inline]

Definition at line 66 of file SkStackViewLayout.h.

SkScalar SkStackViewLayout::getSpacer (  )  const [inline]

Definition at line 38 of file SkStackViewLayout.h.

virtual void SkStackViewLayout::onInflate ( const SkDOM ,
const SkDOM::Node  
) [protected, virtual]

Reimplemented from SkView::Layout.

virtual void SkStackViewLayout::onLayoutChildren ( SkView parent  )  [protected, virtual]

Implements SkView::Layout.

void SkStackViewLayout::setAlign ( Align   ) 
void SkStackViewLayout::setMargin ( const SkRect  ) 
void SkStackViewLayout::setOrient ( Orient   ) 
void SkStackViewLayout::setPack ( Pack   ) 
void SkStackViewLayout::setRound ( bool   ) 
void SkStackViewLayout::setSpacer ( SkScalar   ) 

The documentation for this class was generated from the following file:

Generated on Tue Oct 20 10:33:05 2009 for Skia by  doxygen 1.6.1