Lines Matching refs:SkOSMenu
13 SkOSMenu::SkOSMenu(const char title[]) { in SkOSMenu() function in SkOSMenu
17 SkOSMenu::~SkOSMenu() { in ~SkOSMenu()
21 void SkOSMenu::reset() { in reset()
26 const SkOSMenu::Item* SkOSMenu::getItemByID(int itemID) const { in getItemByID()
34 void SkOSMenu::getItems(const SkOSMenu::Item* items[]) const { in getItems()
42 void SkOSMenu::assignKeyEquivalentToItem(int itemID, SkUnichar key) { in assignKeyEquivalentToItem()
49 bool SkOSMenu::handleKeyEquivalent(SkUnichar key) { in handleKeyEquivalent()
52 SkOSMenu::TriState tristate; in handleKeyEquivalent()
59 SkOSMenu::FindListItemCount(*item->getEvent(), &size); in handleKeyEquivalent()
60 SkOSMenu::FindListIndex(*item->getEvent(), item->getSlotName(), &value); in handleKeyEquivalent()
65 SkOSMenu::FindSwitchState(*item->getEvent(), item->getSlotName(), &state); in handleKeyEquivalent()
69 SkOSMenu::FindTriState(*item->getEvent(), item->getSlotName(), &tristate); in handleKeyEquivalent()
73 tristate = (SkOSMenu::TriState)((int)tristate + 1); in handleKeyEquivalent()
92 SkOSMenu::Item::Item(const char label[], SkOSMenu::Type type, in Item()
102 void SkOSMenu::Item::setBool(bool value) const { in setBool()
103 SkASSERT(SkOSMenu::kSwitch_Type == fType); in setBool()
107 void SkOSMenu::Item::setScalar(SkScalar value) const { in setScalar()
108 SkASSERT(SkOSMenu::kSlider_Type == fType); in setScalar()
112 void SkOSMenu::Item::setInt(int value) const { in setInt()
113 SkASSERT(SkOSMenu::kList_Type == fType); in setInt()
117 void SkOSMenu::Item::setTriState(TriState value) const { in setTriState()
118 SkASSERT(SkOSMenu::kTriState_Type == fType); in setTriState()
122 void SkOSMenu::Item::setString(const char value[]) const { in setString()
123 SkASSERT(SkOSMenu::kTextField_Type == fType); in setString()
136 int SkOSMenu::appendItem(const char label[], Type type, const char slotName[], in appendItem()
138 SkOSMenu::Item* item = new Item(label, type, slotName, evt); in appendItem()
143 int SkOSMenu::appendAction(const char label[], SkEventSinkID target) { in appendAction()
147 return appendItem(label, SkOSMenu::kAction_Type, "", evt); in appendAction()
150 int SkOSMenu::appendList(const char label[], const char slotName[], in appendList()
168 return appendItem(label, SkOSMenu::kList_Type, slotName, evt); in appendList()
171 int SkOSMenu::appendSlider(const char label[], const char slotName[], in appendSlider()
178 return appendItem(label, SkOSMenu::kSlider_Type, slotName, evt); in appendSlider()
181 int SkOSMenu::appendSwitch(const char label[], const char slotName[], in appendSwitch()
185 return appendItem(label, SkOSMenu::kSwitch_Type, slotName, evt); in appendSwitch()
188 int SkOSMenu::appendTriState(const char label[], const char slotName[], in appendTriState()
189 SkEventSinkID target, SkOSMenu::TriState defaultState) { in appendTriState()
192 return appendItem(label, SkOSMenu::kTriState_Type, slotName, evt); in appendTriState()
195 int SkOSMenu::appendTextField(const char label[], const char slotName[], in appendTextField()
199 return appendItem(label, SkOSMenu::kTextField_Type, slotName, evt); in appendTextField()
202 bool SkOSMenu::FindListItemCount(const SkEvent& evt, int* count) { in FindListItemCount()
206 bool SkOSMenu::FindListItems(const SkEvent& evt, SkString items[]) { in FindListItems()
224 bool SkOSMenu::FindSliderMin(const SkEvent& evt, SkScalar* min) { in FindSliderMin()
228 bool SkOSMenu::FindSliderMax(const SkEvent& evt, SkScalar* max) { in FindSliderMax()
232 bool SkOSMenu::FindAction(const SkEvent& evt, const char label[]) { in FindAction()
236 bool SkOSMenu::FindListIndex(const SkEvent& evt, const char slotName[], int* value) { in FindListIndex()
240 bool SkOSMenu::FindSliderValue(const SkEvent& evt, const char slotName[], SkScalar* value) { in FindSliderValue()
244 bool SkOSMenu::FindSwitchState(const SkEvent& evt, const char slotName[], bool* value) { in FindSwitchState()
248 bool SkOSMenu::FindTriState(const SkEvent& evt, const char slotName[], SkOSMenu::TriState* value) { in FindTriState()
252 bool SkOSMenu::FindText(const SkEvent& evt, const char slotName[], SkString* value) { in FindText()