• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1771 (tree)
日時2010-04-12 01:16:56
作者satofumi

ログメッセージ

add Component::alpha()

変更サマリ

差分

--- trunk/libs/lua/luabindGui.cpp (revision 1770)
+++ trunk/libs/lua/luabindGui.cpp (revision 1771)
@@ -163,8 +163,10 @@
163163 value("Middle", Menu::Middle),
164164 value("Bottom", Menu::Bottom)
165165 ]
166+ .def(constructor<const Rect<long>&, Menu::Align>())
167+ .def("setAlpha", &Menu::setAlpha)
168+ .def("alpha", &Menu::alpha)
166169 .def("setPosition", &Menu::setPosition)
167- .def(constructor<const Rect<long>&, Menu::Align>())
168170 .def("setButtonStep", &Menu::setButtonStep)
169171 .def("addButton", &Menu::addButton)
170172 .def("setEnableNoSelect", &Menu::setEnableNoSelect)
--- trunk/libs/gui/Menu.h (revision 1770)
+++ trunk/libs/gui/Menu.h (revision 1771)
@@ -45,6 +45,7 @@
4545 Rect<long> rect(void) const;
4646 void setEventAcceptable(bool acceptable);
4747 void setAlpha(float alpha);
48+ float alpha(void);
4849 void setRotateAngle(const Angle& angle);
4950 void draw(const Rect<long>& area);
5051
--- trunk/libs/gui/Button.cpp (revision 1770)
+++ trunk/libs/gui/Button.cpp (revision 1771)
@@ -239,6 +239,12 @@
239239 }
240240
241241
242+float Button::alpha(void)
243+{
244+ return pimpl->surfaces_.alpha();
245+}
246+
247+
242248 void Button::setRotateAngle(const Angle& angle)
243249 {
244250 pimpl->surfaces_.setRotateAngle(angle);
--- trunk/libs/gui/Label.cpp (revision 1770)
+++ trunk/libs/gui/Label.cpp (revision 1771)
@@ -71,6 +71,12 @@
7171 }
7272
7373
74+float Label::alpha(void)
75+{
76+ return pimpl->surface_.alpha();
77+}
78+
79+
7480 void Label::setRotateAngle(const Angle& angle)
7581 {
7682 pimpl->surface_.setRotateAngle(angle);
--- trunk/libs/gui/ChatMessage.cpp (revision 1770)
+++ trunk/libs/gui/ChatMessage.cpp (revision 1771)
@@ -207,6 +207,12 @@
207207 }
208208
209209
210+float ChatMessage::alpha(void)
211+{
212+ return pimpl->alpha_;
213+}
214+
215+
210216 void ChatMessage::setRotateAngle(const Angle& angle)
211217 {
212218 (void)angle;
--- trunk/libs/gui/Menu.cpp (revision 1770)
+++ trunk/libs/gui/Menu.cpp (revision 1771)
@@ -549,6 +549,12 @@
549549 }
550550
551551
552+float Menu::alpha(void)
553+{
554+ return pimpl->alpha_;
555+}
556+
557+
552558 void Menu::setRotateAngle(const Angle& angle)
553559 {
554560 (void)angle;
--- trunk/libs/gui/Component.h (revision 1770)
+++ trunk/libs/gui/Component.h (revision 1771)
@@ -43,6 +43,7 @@
4343 virtual Rect<long> rect(void) const = 0;
4444 virtual void setEventAcceptable(bool acceptable) = 0;
4545 virtual void setAlpha(float alpha) = 0;
46+ virtual float alpha(void) = 0;
4647 virtual void setRotateAngle(const Angle& angle) = 0;
4748 virtual void draw(const Rect<long>& area) = 0;
4849
--- trunk/libs/gui/Button.h (revision 1770)
+++ trunk/libs/gui/Button.h (revision 1771)
@@ -41,6 +41,7 @@
4141 Rect<long> rect(void) const;
4242 void setEventAcceptable(bool acceptable);
4343 void setAlpha(float alpha);
44+ float alpha(void);
4445 void setRotateAngle(const Angle& angle);
4546 void draw(const Rect<long>& area);
4647
--- trunk/libs/gui/Label.h (revision 1770)
+++ trunk/libs/gui/Label.h (revision 1771)
@@ -30,6 +30,7 @@
3030 Rect<long> rect(void) const;
3131 void setEventAcceptable(bool acceptable);
3232 void setAlpha(float alpha);
33+ float alpha(void);
3334 void setRotateAngle(const Angle& angle);
3435 void draw(const Rect<long>& area);
3536
--- trunk/libs/gui/ChatMessage.h (revision 1770)
+++ trunk/libs/gui/ChatMessage.h (revision 1771)
@@ -30,6 +30,7 @@
3030 Rect<long> rect(void) const;
3131 void setEventAcceptable(bool acceptable);
3232 void setAlpha(float alpha);
33+ float alpha(void);
3334 void setRotateAngle(const Angle& angle);
3435 void draw(const Rect<long>& area);
3536
旧リポジトリブラウザで表示