SkWidgetView Class Reference

#include <SkWidget.h>

Inherits SkView, and SkView.

Inherited by SkBorderView, SkButtonView, SkCheckButtonView, SkGridView, SkListView, SkListView, SkProgressBarView, SkScrollBarView, and SkSliderView.

Collaboration diagram for SkWidgetView:
[legend]

List of all members.

Public Member Functions

 SkWidgetView (uint32_t flags=0)
virtual ~SkWidgetView ()
 SkWidgetView ()
const char * getLabel () const
void getLabel (SkString *label) const
void setLabel (const char[])
void setLabel (const char[], size_t len)
void setLabel (const SkString &)
SkEventevent ()
const SkEventevent () const
bool postWidgetEvent ()

Static Public Member Functions

static const char * GetEventType ()
static SkEventSinkID GetWidgetEventSinkID (const SkEvent &)

Protected Member Functions

virtual void onLabelChange (const char oldLabel[], const char newLabel[])
virtual bool onPrepareWidgetEvent (SkEvent *evt)
virtual void onInflate (const SkDOM &dom, const SkDOM::Node *)

Detailed Description

Definition at line 196 of file SkWidget.h.


Constructor & Destructor Documentation

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

Member Function Documentation

const SkEvent& SkWidgetView::event (  )  const [inline]

Definition at line 78 of file SkWidgetViews.h.

SkEvent& SkWidgetView::event (  )  [inline]

Definition at line 77 of file SkWidgetViews.h.

static const char* SkWidgetView::GetEventType (  )  [static]
void SkWidgetView::getLabel ( SkString label  )  const
const char* SkWidgetView::getLabel (  )  const
static SkEventSinkID SkWidgetView::GetWidgetEventSinkID ( const SkEvent  )  [static]

Returns the sinkID of the widgetview that posted the event, or 0

virtual void SkWidgetView::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 SkView.

Reimplemented in SkBorderView, SkProgressBarView, SkScrollBarView, SkListView, SkGridView, SkCheckButtonView, and SkListView.

virtual void SkWidgetView::onLabelChange ( const char  oldLabel[],
const char  newLabel[] 
) [protected, virtual]

called when the label changes. override in subclasses. default action invals the view's bounds. called with the old and new labels, before the label has actually changed.

virtual bool SkWidgetView::onPrepareWidgetEvent ( SkEvent evt  )  [protected, virtual]

called before posting the event to our listeners. Override to add slots to the event before posting. Return true to proceed with posting, or false to not post the event to any listener. Note: the event passed in may not be the same as calling this->event(). Be sure to call your INHERITED method as well, so that all classes in the hierarchy get a shot at modifying the event (and possibly returning false to abort).

Reimplemented in SkCheckButtonView, and SkListView.

bool SkWidgetView::postWidgetEvent (  ) 

Returns true if the widget can post its event to its listeners.

void SkWidgetView::setLabel ( const SkString  ) 
void SkWidgetView::setLabel ( const   char[],
size_t  len 
)
void SkWidgetView::setLabel ( const   char[]  ) 

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

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