#include <SkStackViewLayout.h>
Inherits SkView::Layout.
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 *) |
Definition at line 22 of file SkStackViewLayout.h.
Controls the posititioning at right angles to the orientation
Definition at line 55 of file SkStackViewLayout.h.
Definition at line 26 of file SkStackViewLayout.h.
Controls the posititioning in the same direction as the orientation
Definition at line 43 of file SkStackViewLayout.h.
SkStackViewLayout::SkStackViewLayout | ( | ) |
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 | ) |