SkWidgetView Class Reference
#include <SkWidget.h>
Inherits SkView, and SkView.
Inherited by SkBorderView, SkButtonView, SkCheckButtonView, SkGridView, SkListView, SkListView, SkProgressBarView, SkScrollBarView, and SkSliderView.
List of all members.
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] |
SkEvent& SkWidgetView::event |
( |
|
) |
[inline] |
static const char* SkWidgetView::GetEventType |
( |
|
) |
[static] |
void SkWidgetView::getLabel |
( |
SkString * |
label |
) |
const |
const char* SkWidgetView::getLabel |
( |
|
) |
const |
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] |
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: