Home | History | Annotate | Download | only in views

Lines Matching refs:Item

26 const SkOSMenu::Item* SkOSMenu::getItemByID(int itemID) const {
34 void SkOSMenu::getItems(const SkOSMenu::Item* items[]) const {
54 Item* item = fItems[i];
55 if (item->getKeyEquivalent()== key) {
57 switch (item->getType()) {
59 SkOSMenu::FindListItemCount(*item->getEvent(), &size);
60 SkOSMenu::FindListIndex(*item->getEvent(), item->getSlotName(), &value);
62 item->setInt(value);
65 SkOSMenu::FindSwitchState(*item->getEvent(), item->getSlotName(), &state);
66 item->setBool(!state);
69 SkOSMenu::FindTriState(*item->getEvent(), item->getSlotName(), &tristate);
74 item->setTriState(tristate);
83 item->postEvent();
92 SkOSMenu::Item::Item(const char label[], SkOSMenu::Type type,
102 void SkOSMenu::Item::setBool(bool value) const {
107 void SkOSMenu::Item::setScalar(SkScalar value) const {
112 void SkOSMenu::Item::setInt(int value) const {
117 void SkOSMenu::Item::setTriState(TriState value) const {
122 void SkOSMenu::Item::setString(const char value[]) const {
138 SkOSMenu::Item* item = new Item(label, type, slotName, evt);
139 fItems.append(1, &item);
140 return item->getID();