• Home
  • Raw
  • Download

Lines Matching refs:evt

49     SkEvent* evt = new SkEvent(view_inval_msg);  in postInvalDelay()  local
50 evt->post(sinkID, 1); in postInvalDelay()
53 static bool isInvalEvent(const SkEvent& evt) { in isInvalEvent() argument
54 return evt.isType(view_inval_msg); in isInvalEvent()
172 bool SampleCode::CharQ(const SkEvent& evt, SkUnichar* outUni) { in CharQ() argument
173 if (evt.isType(gCharEvtName, sizeof(gCharEvtName) - 1)) { in CharQ()
175 *outUni = evt.getFast32(); in CharQ()
182 bool SampleCode::KeyQ(const SkEvent& evt, SkKey* outKey) { in KeyQ() argument
183 if (evt.isType(gKeyEvtName, sizeof(gKeyEvtName) - 1)) { in KeyQ()
185 *outKey = (SkKey)evt.getFast32(); in KeyQ()
192 bool SampleCode::TitleQ(const SkEvent& evt) { in TitleQ() argument
193 return evt.isType(gTitleEvtName, sizeof(gTitleEvtName) - 1); in TitleQ()
196 void SampleCode::TitleR(SkEvent* evt, const char title[]) { in TitleR() argument
197 SkASSERT(evt && TitleQ(*evt)); in TitleR()
198 evt->setString(gTitleEvtName, title); in TitleR()
201 bool SampleCode::PrefSizeQ(const SkEvent& evt) { in PrefSizeQ() argument
202 return evt.isType(gPrefSizeEvtName, sizeof(gPrefSizeEvtName) - 1); in PrefSizeQ()
205 void SampleCode::PrefSizeR(SkEvent* evt, SkScalar width, SkScalar height) { in PrefSizeR() argument
206 SkASSERT(evt && PrefSizeQ(*evt)); in PrefSizeR()
210 evt->setScalars(gPrefSizeEvtName, 2, size); in PrefSizeR()
213 bool SampleCode::FastTextQ(const SkEvent& evt) { in FastTextQ() argument
214 return evt.isType(gFastTextEvtName, sizeof(gFastTextEvtName) - 1); in FastTextQ()
266 virtual bool onEvent(const SkEvent& evt);
267 virtual bool onQuery(SkEvent* evt);
275 virtual bool handleEvent(const SkEvent& evt);
342 SkEvent* evt = new SkEvent(ANIMATING_EVENTTYPE); in postAnimatingEvent() local
343 evt->post(this->getSinkID(), ANIMATING_DELAY); in postAnimatingEvent()
952 bool SampleWindow::onEvent(const SkEvent& evt) { in onEvent() argument
953 if (evt.isType(ANIMATING_EVENTTYPE)) { in onEvent()
960 if (evt.isType("set-curr-index")) { in onEvent()
961 fCurrIndex = evt.getFast32() % fSamples.count(); in onEvent()
965 if (isInvalEvent(evt)) { in onEvent()
969 return this->INHERITED::onEvent(evt); in onEvent()
979 SkEvent evt(gTitleEvtName); in onQuery() local
980 if (view->doQuery(&evt)) { in onQuery()
981 query->setString("title", evt.findString(gTitleEvtName)); in onQuery()
987 SkEvent evt(gFastTextEvtName); in onQuery() local
988 return curr_view(this)->doQuery(&evt); in onQuery()
1009 SkEvent evt(gCharEvtName); in onHandleChar() local
1010 evt.setFast32(uni); in onHandleChar()
1011 if (view->doQuery(&evt)) { in onHandleChar()
1135 SkEvent evt(gKeyEvtName); in onHandleKey() local
1136 evt.setFast32(key); in onHandleKey()
1137 if (view->doQuery(&evt)) { in onHandleKey()
1303 SkEvent evt(gTitleEvtName); in updateTitle() local
1304 if (view->doQuery(&evt)) { in updateTitle()
1305 title.set(evt.findString(gTitleEvtName)); in updateTitle()
1391 SkEvent evt(is_sample_view_tag); in IsSampleView() local
1392 return view->doQuery(&evt); in IsSampleView()
1396 SkEvent evt(repeat_count_tag); in SetRepeatDraw() local
1397 evt.setFast32(count); in SetRepeatDraw()
1398 return view->doEvent(evt); in SetRepeatDraw()
1402 SkEvent evt(set_use_pipe_tag); in SetUsePipe() local
1403 evt.setFast32(pred); in SetUsePipe()
1404 return view->doEvent(evt); in SetUsePipe()
1407 bool SampleView::onEvent(const SkEvent& evt) { in onEvent() argument
1408 if (evt.isType(repeat_count_tag)) { in onEvent()
1409 fRepeatCount = evt.getFast32(); in onEvent()
1412 if (evt.isType(set_use_pipe_tag)) { in onEvent()
1413 fUsePipe = !!evt.getFast32(); in onEvent()
1416 return this->INHERITED::onEvent(evt); in onEvent()
1419 bool SampleView::onQuery(SkEvent* evt) { in onQuery() argument
1420 if (evt->isType(is_sample_view_tag)) { in onQuery()
1423 return this->INHERITED::onQuery(evt); in onQuery()