tasn pushed a commit to branch master.

http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=a379649792ebb51c86ba6ca25704f4b69e94ea8b

commit a379649792ebb51c86ba6ca25704f4b69e94ea8b
Author: Andreas Volz <[email protected]>
Date:   Fri Jul 9 21:30:52 2010 +0000

    Label implementation wrapper
    
    SVN revision: 50169
---
 elementaryxx/include/elementaryxx/Label.h | 10 ++++++++++
 elementaryxx/src/Label.cpp                | 25 +++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/elementaryxx/include/elementaryxx/Label.h 
b/elementaryxx/include/elementaryxx/Label.h
index 614a432..d7061dc 100644
--- a/elementaryxx/include/elementaryxx/Label.h
+++ b/elementaryxx/include/elementaryxx/Label.h
@@ -19,6 +19,16 @@ public:
   
   void setLabel (const std::string &label);
 
+  const std::string getLabel () const;
+
+  void setLineWrap (bool wrap);
+
+  bool getLineWrap () const;
+
+  void setWrapWidth (Evas_Coord w);
+
+  Evas_Coord getWrapWidth () const;
+  
 private:
   Label (); // forbid standard constructor
   Label (const Label&); // forbid copy constructor
diff --git a/elementaryxx/src/Label.cpp b/elementaryxx/src/Label.cpp
index 08b889e..971ffb5 100644
--- a/elementaryxx/src/Label.cpp
+++ b/elementaryxx/src/Label.cpp
@@ -27,4 +27,29 @@ void Label::setLabel (const std::string &label)
   elm_label_label_set (o, label.c_str ());
 }
 
+const std::string Label::getLabel () const
+{
+  return elm_label_label_get (o);
+}
+
+void Label::setLineWrap (bool wrap)
+{
+  elm_label_line_wrap_set (o, wrap);
+}
+
+bool Label::getLineWrap () const
+{
+  return elm_label_line_wrap_get (o);
+}
+
+void Label::setWrapWidth (Evas_Coord w)
+{
+  elm_label_wrap_width_set (o, w);
+}
+
+Evas_Coord Label::getWrapWidth () const
+{
+  return elm_label_wrap_width_get (o);
+}
+
 } // end namespace Elmxx

-- 


Reply via email to