GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
TextView Class Reference

#include <TextView.H>

Inheritance diagram for TextView:
Inheritance graph
[legend]
Collaboration diagram for TextView:
Collaboration graph
[legend]

Public Member Functions

 TextView (void)
 
void setFont (PangoFontDescription *pangoFontDescription)
 
void connectBufferChangedSignal (GCallback callBack, void *data)
 
- Public Member Functions inherited from Container
GtkWidget * getWidget (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &b)
 
Containeroperator<< (Container *b)
 
virtual Containeroperator<< (GtkWidget *b)
 
Containeroperator<< (LinkList< GtkWidget * > &ll)
 
Containeroperator>> (GtkWidget *b)
 
Containeroperator>> (Container *b)
 
Containeroperator>> (Container &b)
 
- Public Member Functions inherited from Widget
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 

Additional Inherited Members

- Protected Member Functions inherited from Container
virtual void pack (GtkWidget *obj)
 
- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

TextView

Simple TextView widget.

Here is how to get the text from the text view:

GtkTextIter start, end;
char *text_;
GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (entry.getWidget()));
gtk_text_buffer_get_bounds (buffer, &start, &end);
text_ = gtk_text_iter_get_text (&start, &end);

Definition at line 36 of file TextView.H.

Constructor & Destructor Documentation

TextView::TextView ( void  )
inline

Constructor

Definition at line 40 of file TextView.H.

Member Function Documentation

void TextView::connectBufferChangedSignal ( GCallback  callBack,
void *  data 
)
inline

Connect a callback to capture when the text has changed in the text view buffer

Definition at line 62 of file TextView.H.

void TextView::setFont ( PangoFontDescription *  pangoFontDescription)
inline
Set the font

For example :

#include "Pango.H"
Font font("bold"); // could be something else, like "Sans 12"
TextView textView;
textView.setLabelsFont(font.getPangoFontDescription());

Definition at line 55 of file TextView.H.


The documentation for this class was generated from the following file: