Lines Matching refs:evt
110 bool SampleCode::CharQ(const SkEvent& evt, SkUnichar* outUni) { in CharQ() argument
111 if (evt.isType(gCharEvtName, sizeof(gCharEvtName) - 1)) { in CharQ()
113 *outUni = evt.getFast32(); in CharQ()
120 bool SampleCode::KeyQ(const SkEvent& evt, SkKey* outKey) { in KeyQ() argument
121 if (evt.isType(gKeyEvtName, sizeof(gKeyEvtName) - 1)) { in KeyQ()
123 *outKey = (SkKey)evt.getFast32(); in KeyQ()
130 bool SampleCode::TitleQ(const SkEvent& evt) { in TitleQ() argument
131 return evt.isType(gTitleEvtName, sizeof(gTitleEvtName) - 1); in TitleQ()
134 void SampleCode::TitleR(SkEvent* evt, const char title[]) { in TitleR() argument
135 GrAssert(evt && TitleQ(*evt)); in TitleR()
136 evt->setString(gTitleEvtName, title); in TitleR()
139 bool SampleCode::PrefSizeQ(const SkEvent& evt) { in PrefSizeQ() argument
140 return evt.isType(gPrefSizeEvtName, sizeof(gPrefSizeEvtName) - 1); in PrefSizeQ()
143 void SampleCode::PrefSizeR(SkEvent* evt, SkScalar width, SkScalar height) { in PrefSizeR() argument
144 GrAssert(evt && PrefSizeQ(*evt)); in PrefSizeR()
148 evt->setScalars(gPrefSizeEvtName, 2, size); in PrefSizeR()
151 bool SampleCode::FastTextQ(const SkEvent& evt) { in FastTextQ() argument
152 return evt.isType(gFastTextEvtName, sizeof(gFastTextEvtName) - 1); in FastTextQ()
213 SkEvent evt(gTitleEvtName); in getSlideTitle() local
214 evt.setFast32(index); in getSlideTitle()
217 view->doQuery(&evt); in getSlideTitle()
220 return evt.findString(gTitleEvtName); in getSlideTitle()