SkGridView Class Reference

#include <SkWidget.h>

Inherits SkWidgetView.

Collaboration diagram for SkGridView:
[legend]

List of all members.

Public Types

enum  Attr { kBG_Attr, kHiliteCell_Attr, kAttrCount }

Public Member Functions

 SkGridView (uint32_t flags=0)
virtual ~SkGridView ()
void getCellSize (SkPoint *) const
void setCellSize (SkScalar x, SkScalar y)
int getSelection () const
void setSelection (int)
void moveSelectionUp ()
void moveSelectionDown ()
SkPaintpaint (Attr)
SkListSourcegetListSource () const
SkListSourcesetListSource (SkListSource *)

Protected Member Functions

virtual void onDraw (SkCanvas *)
virtual void onSizeChange ()
virtual bool onEvent (const SkEvent &)
virtual void onInflate (const SkDOM &dom, const SkDOM::Node *node)

Detailed Description

Definition at line 424 of file SkWidget.h.


Member Enumeration Documentation

Enumerator:
kBG_Attr 
kHiliteCell_Attr 
kAttrCount 

Definition at line 442 of file SkWidget.h.


Constructor & Destructor Documentation

SkGridView::SkGridView ( uint32_t  flags = 0  ) 
virtual SkGridView::~SkGridView (  )  [virtual]

Member Function Documentation

void SkGridView::getCellSize ( SkPoint  )  const
SkListSource* SkGridView::getListSource (  )  const [inline]

Definition at line 449 of file SkWidget.h.

int SkGridView::getSelection (  )  const [inline]

Return the index of the selected item, or -1 if none

Definition at line 434 of file SkWidget.h.

void SkGridView::moveSelectionDown (  ) 
void SkGridView::moveSelectionUp (  ) 
virtual void SkGridView::onDraw ( SkCanvas  )  [protected, virtual]
virtual bool SkGridView::onEvent ( const SkEvent  )  [protected, virtual]

Override this to handle events in your subclass. Be sure to call the inherited version for events that you don't handle.

Reimplemented from SkEventSink.

virtual void SkGridView::onInflate ( const SkDOM dom,
const SkDOM::Node node 
) [protected, virtual]

Override this to initialize your subclass from the XML node. Be sure to call the inherited version too

Reimplemented from SkWidgetView.

virtual void SkGridView::onSizeChange (  )  [protected, virtual]
SkPaint& SkGridView::paint ( Attr   ) 
void SkGridView::setCellSize ( SkScalar  x,
SkScalar  y 
)
SkListSource* SkGridView::setListSource ( SkListSource  ) 
void SkGridView::setSelection ( int   ) 

Set the index of the selected row, or -1 for none


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

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