• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1812 (tree)
日時2010-05-01 16:01:24
作者satofumi

ログメッセージ

add Menu::index() method

変更サマリ

差分

--- trunk/libs/lua/luabindGui.cpp (revision 1811)
+++ trunk/libs/lua/luabindGui.cpp (revision 1812)
@@ -182,6 +182,7 @@
182182 .def("setEnableRotate", &Menu::setEnableRotate)
183183 .def("indexSize", &Menu::indexSize)
184184 .def("setIndex", &Menu::setIndex)
185+ .def("index", &Menu::index)
185186 .def("isClicked", &Menu::isClicked)
186187 .def("clickedId", &Menu::clickedId),
187188
@@ -218,8 +219,32 @@
218219 LuaHandler::registerValue(L, "SDLK_LEFT", SDLK_LEFT);
219220 LuaHandler::registerValue(L, "SDLK_RIGHT", SDLK_RIGHT);
220221
222+ LuaHandler::registerValue(L, "SDLK_a", SDLK_a);
223+ LuaHandler::registerValue(L, "SDLK_b", SDLK_b);
224+ LuaHandler::registerValue(L, "SDLK_c", SDLK_c);
225+ LuaHandler::registerValue(L, "SDLK_d", SDLK_d);
226+ LuaHandler::registerValue(L, "SDLK_e", SDLK_e);
227+ LuaHandler::registerValue(L, "SDLK_f", SDLK_f);
228+ LuaHandler::registerValue(L, "SDLK_g", SDLK_g);
221229 LuaHandler::registerValue(L, "SDLK_h", SDLK_h);
230+ LuaHandler::registerValue(L, "SDLK_i", SDLK_i);
231+ LuaHandler::registerValue(L, "SDLK_j", SDLK_j);
232+ LuaHandler::registerValue(L, "SDLK_k", SDLK_k);
233+ LuaHandler::registerValue(L, "SDLK_l", SDLK_l);
234+ LuaHandler::registerValue(L, "SDLK_m", SDLK_m);
235+ LuaHandler::registerValue(L, "SDLK_n", SDLK_n);
236+ LuaHandler::registerValue(L, "SDLK_o", SDLK_o);
237+ LuaHandler::registerValue(L, "SDLK_p", SDLK_p);
222238 LuaHandler::registerValue(L, "SDLK_q", SDLK_q);
239+ LuaHandler::registerValue(L, "SDLK_r", SDLK_r);
240+ LuaHandler::registerValue(L, "SDLK_s", SDLK_s);
241+ LuaHandler::registerValue(L, "SDLK_t", SDLK_t);
242+ LuaHandler::registerValue(L, "SDLK_u", SDLK_u);
243+ LuaHandler::registerValue(L, "SDLK_v", SDLK_v);
244+ LuaHandler::registerValue(L, "SDLK_w", SDLK_w);
245+ LuaHandler::registerValue(L, "SDLK_x", SDLK_x);
246+ LuaHandler::registerValue(L, "SDLK_y", SDLK_y);
247+ LuaHandler::registerValue(L, "SDLK_z", SDLK_z);
223248
224249 LuaHandler::registerValue(L, "SDL_KEYDOWN", SDL_KEYDOWN);
225250 LuaHandler::registerValue(L, "SDL_KEYUP", SDL_KEYUP);
--- trunk/libs/gui/Menu.h (revision 1811)
+++ trunk/libs/gui/Menu.h (revision 1812)
@@ -66,6 +66,7 @@
6666 void release(void);
6767
6868 void setIndex(int index);
69+ int index(void) const;
6970 bool isClicked(void) const;
7071 size_t clickedId(void) const;
7172 int clickedIndex(void) const;
--- trunk/libs/gui/Menu.cpp (revision 1811)
+++ trunk/libs/gui/Menu.cpp (revision 1812)
@@ -671,6 +671,12 @@
671671 }
672672
673673
674+int Menu::index(void) const
675+{
676+ return pimpl->index_;
677+}
678+
679+
674680 bool Menu::isClicked(void) const
675681 {
676682 return (pimpl->clicked_index_ == InvalidIndex) ? false : true;
旧リポジトリブラウザで表示