tasn pushed a commit to branch master. http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=3d921de346a2c95d3b948c57a54f71160134ee49
commit 3d921de346a2c95d3b948c57a54f71160134ee49 Author: Andreas Volz <[email protected]> Date: Wed Nov 16 07:02:05 2011 +0000 API SVN revision: 65287 --- eflxx_examples/src/elementaryxx/full/main.cpp | 2 +- eflxx_examples/src/elementaryxx/simple/main.cpp | 3 +-- elementaryxx/include/elementaryxx/Window.h | 12 ++++++++++++ elementaryxx/src/Window.cpp | 10 ++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/eflxx_examples/src/elementaryxx/full/main.cpp b/eflxx_examples/src/elementaryxx/full/main.cpp index 4aadcc3..bc3ead5 100644 --- a/eflxx_examples/src/elementaryxx/full/main.cpp +++ b/eflxx_examples/src/elementaryxx/full/main.cpp @@ -104,7 +104,7 @@ int main (int argc, const char **argv) * data pointer (first param) is passed the final param here (in this * case it is NULL). This is how you can pass specific things to a * callback like objects or data layered on top */ - win->getEventSignal ("delete-request")->connect (sigc::ptr_fun (&my_win_del)); + win->getEventSignal ("delete,request")->connect (sigc::ptr_fun (&my_win_del)); win->setAutoDel (true); diff --git a/eflxx_examples/src/elementaryxx/simple/main.cpp b/eflxx_examples/src/elementaryxx/simple/main.cpp index b5c68c8..3a9e7e2 100644 --- a/eflxx_examples/src/elementaryxx/simple/main.cpp +++ b/eflxx_examples/src/elementaryxx/simple/main.cpp @@ -13,7 +13,6 @@ using namespace Elmxx; static void my_win_del(Evasxx::Object &obj, void *event_info) { - // TODO /* called when my_win_main is requested to be deleted */ Application::exit(); /* exit the program's main loop that runs in elm_run() */ } @@ -28,7 +27,7 @@ int main (int argc, const char **argv) Application elmApp (argc, argv); Window *elmWin = Window::factory ("window1", ELM_WIN_BASIC); - elmWin->getEventSignal ("delete-request")->connect (sigc::ptr_fun (&my_win_del)); + elmWin->getEventSignal ("delete,request")->connect (sigc::ptr_fun (&my_win_del)); Background *bg = Background::factory (*elmWin); diff --git a/elementaryxx/include/elementaryxx/Window.h b/elementaryxx/include/elementaryxx/Window.h index c2afada..84d48f0 100644 --- a/elementaryxx/include/elementaryxx/Window.h +++ b/elementaryxx/include/elementaryxx/Window.h @@ -59,6 +59,18 @@ public: void setRotation (int rotation); void setSticky (bool sticky); + + /*! + * Get the transparency state of a window. + */ + bool getTransparent () const; + + /*! + * Set the transparency state of a window. + * + * Use setAlpha () instead. + */ + void setTransparent (bool transparent); //void setKeyboardMode (Elm_Win_Keyboard_Mode mode); diff --git a/elementaryxx/src/Window.cpp b/elementaryxx/src/Window.cpp index 826aefa..dd49a2f 100644 --- a/elementaryxx/src/Window.cpp +++ b/elementaryxx/src/Window.cpp @@ -109,6 +109,16 @@ void Window::setSticky (bool sticky) elm_win_sticky_set(o, sticky); } +bool Window::getTransparent () const +{ + return elm_win_transparent_get (o); +} + +void Window::setTransparent (bool transparent) +{ + elm_win_transparent_set (o, transparent); +} + void Window::addObjectResize (const Evasxx::Object &subobj) { elm_win_resize_object_add (o, subobj.obj ()); --
