#include <SkWidget.h>
Inherits SkButtonWidget.
Public Member Functions | |
SkPushButtonWidget (uint32_t flags=0) | |
Protected Member Functions | |
virtual bool | onEvent (const SkEvent &) |
virtual void | onDraw (SkCanvas *) |
virtual Click * | onFindClickHandler (SkScalar x, SkScalar y) |
virtual bool | onClick (Click *click) |
Definition at line 97 of file SkWidget.h.
SkPushButtonWidget::SkPushButtonWidget | ( | uint32_t | flags = 0 |
) | [inline] |
Definition at line 99 of file SkWidget.h.
virtual bool SkPushButtonWidget::onClick | ( | Click * | ) | [protected, virtual] |
Override this to track clicks, returning true as long as you want to track the pen/mouse.
Reimplemented from SkView.
virtual void SkPushButtonWidget::onDraw | ( | SkCanvas * | ) | [protected, virtual] |
virtual bool SkPushButtonWidget::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 Click* SkPushButtonWidget::onFindClickHandler | ( | SkScalar | x, | |
SkScalar | y | |||
) | [protected, virtual] |
Override this if you might handle the click
Reimplemented from SkView.