• Home
  • Raw
  • Download

Lines Matching refs:evt

142 		SkEvent	evt(fEvent);	// make a copy since onPrepareWidgetEvent may edit the event  in postWidgetEvent()  local
144 if (this->onPrepareWidgetEvent(&evt)) in postWidgetEvent()
146 SkDEBUGCODE(evt.dump("SkWidgetView::postWidgetEvent");) in postWidgetEvent()
148 this->postToListeners(evt); // wonder if this should return true if there are > 0 listeners... in postWidgetEvent()
174 /*virtual*/ bool SkWidgetView::onPrepareWidgetEvent(SkEvent* evt) in onPrepareWidgetEvent() argument
176 evt->setS32(gWidgetEventSinkIDSlotName, this->getSinkID()); in onPrepareWidgetEvent()
180 SkEventSinkID SkWidgetView::GetWidgetEventSinkID(const SkEvent& evt) in GetWidgetEventSinkID() argument
184 return evt.findS32(gWidgetEventSinkIDSlotName, &sinkID) ? (SkEventSinkID)sinkID : 0; in GetWidgetEventSinkID()
189 /*virtual*/ bool SkButtonView::onEvent(const SkEvent& evt) in onEvent() argument
191 if (evt.isType(SK_EventType_Key) && evt.getFast32() == kOK_SkKey) in onEvent()
196 return this->INHERITED::onEvent(evt); in onEvent()
232 /*virtual*/ bool SkCheckButtonView::onPrepareWidgetEvent(SkEvent* evt) in onPrepareWidgetEvent() argument
236 evt->setS32(gCheckStateSlotName, this->getCheckState()); in onPrepareWidgetEvent()
240 bool SkCheckButtonView::GetWidgetEventCheckState(const SkEvent& evt, CheckState* state) in GetWidgetEventCheckState() argument
244 if (evt.findS32(gCheckStateSlotName, &state32)) in GetWidgetEventCheckState()
273 SkEvent evt("user"); in onLabelChange() local
274 evt.setString("id", "setLabel"); in onLabelChange()
275 evt.setString("LABEL", newLabel); in onLabelChange()
276 fAnim.doUserEvent(evt); in onLabelChange()
283 SkEvent evt("user"); in onFocusChange() local
284 evt.setString("id", "setFocus"); in onFocusChange()
285 evt.setS32("FOCUS", gainFocus); in onFocusChange()
286 fAnim.doUserEvent(evt); in onFocusChange()
293 SkEvent evt("user"); in onSizeChange() local
294 evt.setString("id", "setDim"); in onSizeChange()
295 evt.setScalar("dimX", this->width()); in onSizeChange()
296 evt.setScalar("dimY", this->height()); in onSizeChange()
297 fAnim.doUserEvent(evt); in onSizeChange()
315 virtual bool onEvent(const SkEvent& evt) in onEvent() argument
317 if (evt.isType(SK_EventType_Inval)) in onEvent()
322 if (evt.isType("recommendDim")) in onEvent()
326 if (evt.findScalar("y", &height)) in onEvent()
330 return this->INHERITED::onEvent(evt); in onEvent()
333 virtual bool onPrepareWidgetEvent(SkEvent* evt) in onPrepareWidgetEvent() argument
335 if (this->INHERITED::onPrepareWidgetEvent(evt)) in onPrepareWidgetEvent()