Lines Matching defs:SkView
8 #include "SkView.h"
11 SK_DEFINE_INST_COUNT(SkView::Artist)
12 SK_DEFINE_INST_COUNT(SkView::Layout)
16 SkView::SkView(uint32_t flags) : fFlags(SkToU8(flags))
25 SkView::~SkView()
30 void SkView::setFlags(uint32_t flags)
47 void SkView::setVisibleP(bool pred)
52 void SkView::setEnabledP(bool pred)
57 void SkView::setFocusableP(bool pred)
62 void SkView::setClipToBounds(bool pred) {
66 void SkView::setSize(SkScalar width, SkScalar height)
82 void SkView::setLoc(SkScalar x, SkScalar y)
92 void SkView::offset(SkScalar dx, SkScalar dy)
98 void SkView::setLocalMatrix(const SkMatrix& matrix)
105 void SkView::draw(SkCanvas* canvas)
138 SkView* child;
149 void SkView::inval(SkRect* rect) {
150 SkView* view = this;
170 SkView* parent = view->fParent;
184 bool SkView::setFocusView(SkView* fv)
186 SkView* view = this;
195 SkView* SkView::getFocusView() const
197 SkView* focus = NULL;
198 const SkView* view = this;
206 bool SkView::hasFocus() const
211 bool SkView::acceptFocus()
219 SkView* SkView::acceptFocus(FocusDirection dir)
227 SkView* child, *focus;
235 SkView* child, *focus;
247 SkView* SkView::moveFocus(FocusDirection dir)
249 SkView* focus = this->getFocusView();
258 SkView* child, *parent;
309 void SkView::onFocusChange(bool gainFocusP)
316 SkView::Click::Click(SkView* target)
325 SkView::Click::~Click()
330 void SkView::Click::resetType()
340 bool SkView::Click::isType(const char type[]) const
354 void SkView::Click::setType(const char type[])
360 void SkView::Click::copyType(const char type[])
375 SkView::Click* SkView::findClickHandler(SkScalar x, SkScalar y, unsigned modi) {
382 SkView* child;
402 void SkView::DoClickDown(Click* click, int x, int y, unsigned modi)
406 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
426 void SkView::DoClickMoved(Click* click, int x, int y, unsigned modi)
430 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
450 void SkView::DoClickUp(Click* click, int x, int y, unsigned modi)
454 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
476 void SkView::invokeLayout() {
477 SkView::Layout* layout = this->getLayout();
484 void SkView::onDraw(SkCanvas* canvas) {
492 void SkView::onSizeChange() {}
494 bool SkView::onSendClickToChildren(SkScalar x, SkScalar y, unsigned modi) {
498 SkView::Click* SkView::onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) {
502 bool SkView::onClick(Click*) {
506 bool SkView::handleInval(const SkRect*) {
512 void SkView::getLocalBounds(SkRect* bounds) const
521 void SkView::detachFromParent_NoLayout()
531 SkView* next = NULL;
548 void SkView::detachFromParent()
550 SkView* parent = fParent;
559 SkView* SkView::attachChildToBack(SkView* child)
591 SkView* SkView::attachChildToFront(SkView* child)
623 void SkView::detachAllChildren()
629 void SkView::localToGlobal(SkMatrix* matrix) const
633 const SkView* view = this;
642 bool SkView::globalToLocal(SkScalar x, SkScalar y, SkPoint* local) const
665 void SkView::onInflate(const SkDOM& dom, const SkDOM::Node* node)
696 void SkView::inflate(const SkDOM& dom, const SkDOM::Node* node)
701 void SkView::onPostInflate(const SkTDict<SkView*>&)
706 void SkView::postInflate(const SkTDict<SkView*>& dict)
711 SkView* child;
718 SkView* SkView::sendEventToParents(const SkEvent& evt)
720 SkView* parent = fParent;
731 SkView* SkView::sendQueryToParents(SkEvent* evt) {
732 SkView* parent = fParent;
746 SkView::F2BIter::F2BIter(const SkView* parent)
752 SkView* SkView::F2BIter::next()
754 SkView* curr = fChild;
766 SkView::B2FIter::B2FIter(const SkView* parent)
772 SkView* SkView::B2FIter::next()
774 SkView* curr = fChild;
778 SkView* next = fChild->fNextSibling;
803 static void dumpview(const SkView* view, int level, bool recurse)
815 SkView::B2FIter iter(view);
816 SkView* child;
842 void SkView::dump(bool recurse) const