entry.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTERMM_ENTRY_H
00004 #define _CLUTTERMM_ENTRY_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 2007 The cluttermm Development Team
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  */
00025 
00026 #include <cluttermm/actor.h>
00027 #include <cluttermm/color.h>
00028 #include <pangomm.h>
00029  
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _ClutterEntry ClutterEntry;
00033 typedef struct _ClutterEntryClass ClutterEntryClass;
00034 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Clutter
00038 { class Entry_Class; } // namespace Clutter
00039 namespace Clutter
00040 {
00041 
00042 
00043 class Entry :
00044   public Actor
00045 {
00046   
00047 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00048 
00049 public:
00050   typedef Entry CppObjectType;
00051   typedef Entry_Class CppClassType;
00052   typedef ClutterEntry BaseObjectType;
00053   typedef ClutterEntryClass BaseClassType;
00054 
00055 private:  friend class Entry_Class;
00056   static CppClassType entry_class_;
00057 
00058 private:
00059   // noncopyable
00060   Entry(const Entry&);
00061   Entry& operator=(const Entry&);
00062 
00063 protected:
00064   explicit Entry(const Glib::ConstructParams& construct_params);
00065   explicit Entry(ClutterEntry* castitem);
00066 
00067 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00068 
00069 public:
00070   virtual ~Entry();
00071 
00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00073   static GType get_type()      G_GNUC_CONST;
00074   static GType get_base_type() G_GNUC_CONST;
00075 #endif
00076 
00078   ClutterEntry*       gobj()       { return reinterpret_cast<ClutterEntry*>(gobject_); }
00079 
00081   const ClutterEntry* gobj() const { return reinterpret_cast<ClutterEntry*>(gobject_); }
00082 
00084   ClutterEntry* gobj_copy();
00085 
00086 private:
00087 
00088 
00089 protected:
00090   Entry();
00091   explicit Entry(const Glib::ustring& font_name, const Glib::ustring& text);
00092   explicit Entry(const Glib::ustring& font_name, const Glib::ustring& text, const Color& color);
00093 
00094 public:
00095   
00096   static Glib::RefPtr<Entry> create();
00097 
00098   
00099   static Glib::RefPtr<Entry> create(const Glib::ustring& font_name, const Glib::ustring& text);
00100 ;
00101   
00102   static Glib::RefPtr<Entry> create(const Glib::ustring& font_name, const Glib::ustring& text, const Color& color);
00103 ;
00104 
00105  
00112   void set_text(const Glib::ustring& text);
00113   
00120   Glib::ustring get_text() const;
00121   
00131   void set_font_name(const Glib::ustring& font_name);
00132   
00141   Glib::ustring get_font_name() const;
00142 
00143   
00150   Color get_color() const;
00151   
00152   
00158   void set_color(const Color& color);
00159 
00160   
00170   Glib::RefPtr<Pango::Layout> get_layout();
00171   
00181   Glib::RefPtr<const Pango::Layout> get_layout() const;
00182 
00183   
00189   Pango::Alignment get_alignment() const;
00190   
00196   void set_alignment(Pango::Alignment wrap_mode);
00197 
00198   
00204   int get_cursor_position() const;
00205   
00214   void set_cursor_position(int position);
00215 
00216   
00223   void insert(gunichar wc);
00224   
00235   void insert(const Glib::ustring& text, gssize position);
00236 
00237   
00243   void delete_chars(guint len);
00244   
00254   void delete_text(gssize start_pos, gssize end_pos);
00255 
00256   
00262   void set_visible_cursor(bool visible);
00263   
00269   bool get_visible_cursor() const;
00270 
00271   
00282   void set_visibility(bool visible);
00283   
00289   bool get_visibility() const;
00290 
00291   
00302   void set_invisible_char(gunichar wc);
00303   
00307   gunichar get_invisible_char() const;
00308 
00309   
00316   int get_max_length() const;
00317   
00326   void set_max_length(int max_length);
00327 
00328   
00341   void handle_key_event(KeyEvent* kev);
00342 
00343  
00349   Glib::SignalProxy0< void > signal_text_changed();
00350 
00351   
00357   Glib::SignalProxy1< void,const Geometry& > signal_cursor_event();
00358 
00359   
00365   Glib::SignalProxy0< void > signal_activate();
00366 
00367 
00368   #ifdef GLIBMM_PROPERTIES_ENABLED
00369 
00375   Glib::PropertyProxy<Pango::Alignment> property_alignment() ;
00376 #endif //#GLIBMM_PROPERTIES_ENABLED
00377 
00378 #ifdef GLIBMM_PROPERTIES_ENABLED
00379 
00385   Glib::PropertyProxy_ReadOnly<Pango::Alignment> property_alignment() const;
00386 #endif //#GLIBMM_PROPERTIES_ENABLED
00387 
00388   #ifdef GLIBMM_PROPERTIES_ENABLED
00389 
00395   Glib::PropertyProxy<Color> property_color() ;
00396 #endif //#GLIBMM_PROPERTIES_ENABLED
00397 
00398 #ifdef GLIBMM_PROPERTIES_ENABLED
00399 
00405   Glib::PropertyProxy_ReadOnly<Color> property_color() const;
00406 #endif //#GLIBMM_PROPERTIES_ENABLED
00407 
00408   #ifdef GLIBMM_PROPERTIES_ENABLED
00409 
00415   Glib::PropertyProxy<bool> property_cursor_visible() ;
00416 #endif //#GLIBMM_PROPERTIES_ENABLED
00417 
00418 #ifdef GLIBMM_PROPERTIES_ENABLED
00419 
00425   Glib::PropertyProxy_ReadOnly<bool> property_cursor_visible() const;
00426 #endif //#GLIBMM_PROPERTIES_ENABLED
00427 
00428   #ifdef GLIBMM_PROPERTIES_ENABLED
00429 
00435   Glib::PropertyProxy<unsigned int> property_entry_padding() ;
00436 #endif //#GLIBMM_PROPERTIES_ENABLED
00437 
00438 #ifdef GLIBMM_PROPERTIES_ENABLED
00439 
00445   Glib::PropertyProxy_ReadOnly<unsigned int> property_entry_padding() const;
00446 #endif //#GLIBMM_PROPERTIES_ENABLED
00447 
00448   #ifdef GLIBMM_PROPERTIES_ENABLED
00449 
00455   Glib::PropertyProxy<Glib::ustring> property_font_name() ;
00456 #endif //#GLIBMM_PROPERTIES_ENABLED
00457 
00458 #ifdef GLIBMM_PROPERTIES_ENABLED
00459 
00465   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
00466 #endif //#GLIBMM_PROPERTIES_ENABLED
00467 
00468   #ifdef GLIBMM_PROPERTIES_ENABLED
00469 
00475   Glib::PropertyProxy<int> property_max_length() ;
00476 #endif //#GLIBMM_PROPERTIES_ENABLED
00477 
00478 #ifdef GLIBMM_PROPERTIES_ENABLED
00479 
00485   Glib::PropertyProxy_ReadOnly<int> property_max_length() const;
00486 #endif //#GLIBMM_PROPERTIES_ENABLED
00487 
00488   #ifdef GLIBMM_PROPERTIES_ENABLED
00489 
00495   Glib::PropertyProxy<int> property_position() ;
00496 #endif //#GLIBMM_PROPERTIES_ENABLED
00497 
00498 #ifdef GLIBMM_PROPERTIES_ENABLED
00499 
00505   Glib::PropertyProxy_ReadOnly<int> property_position() const;
00506 #endif //#GLIBMM_PROPERTIES_ENABLED
00507 
00508   #ifdef GLIBMM_PROPERTIES_ENABLED
00509 
00515   Glib::PropertyProxy<Glib::ustring> property_text() ;
00516 #endif //#GLIBMM_PROPERTIES_ENABLED
00517 
00518 #ifdef GLIBMM_PROPERTIES_ENABLED
00519 
00525   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00526 #endif //#GLIBMM_PROPERTIES_ENABLED
00527 
00528   #ifdef GLIBMM_PROPERTIES_ENABLED
00529 
00535   Glib::PropertyProxy<bool> property_text_visible() ;
00536 #endif //#GLIBMM_PROPERTIES_ENABLED
00537 
00538 #ifdef GLIBMM_PROPERTIES_ENABLED
00539 
00545   Glib::PropertyProxy_ReadOnly<bool> property_text_visible() const;
00546 #endif //#GLIBMM_PROPERTIES_ENABLED
00547 
00548   #ifdef GLIBMM_PROPERTIES_ENABLED
00549 
00555   Glib::PropertyProxy<double> property_x_align() ;
00556 #endif //#GLIBMM_PROPERTIES_ENABLED
00557 
00558 #ifdef GLIBMM_PROPERTIES_ENABLED
00559 
00565   Glib::PropertyProxy_ReadOnly<double> property_x_align() const;
00566 #endif //#GLIBMM_PROPERTIES_ENABLED
00567 
00568 
00569 protected:
00570   #ifdef GLIBMM_VFUNCS_ENABLED
00571   virtual void paint_cursor_vfunc();
00572 #endif //GLIBMM_VFUNCS_ENABLED
00573 
00574 
00575 public:
00576 
00577 public:
00578   //C++ methods used to invoke GTK+ virtual functions:
00579 #ifdef GLIBMM_VFUNCS_ENABLED
00580 #endif //GLIBMM_VFUNCS_ENABLED
00581 
00582 protected:
00583   //GTK+ Virtual Functions (override these to change behaviour):
00584 #ifdef GLIBMM_VFUNCS_ENABLED
00585 #endif //GLIBMM_VFUNCS_ENABLED
00586 
00587   //Default Signal Handlers::
00588 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00589   virtual void on_text_changed();
00590   virtual void on_cursor_event(const Geometry& geometry);
00591   virtual void on_activate();
00592 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00593 
00594 
00595 };
00596 
00597 } // namespace Clutter
00598 
00599 //vim: ts=2,sw=2
00600 
00601 
00602 namespace Glib
00603 {
00612   Glib::RefPtr<Clutter::Entry> wrap(ClutterEntry* object, bool take_copy = false);
00613 }
00614 
00615 
00616 #endif /* _CLUTTERMM_ENTRY_H */
00617 

Generated on Sun Jul 27 21:35:59 2008 for cluttermm by  doxygen 1.5.4