GwySciText

GwySciText —

Synopsis




typedef     GwySciTextParams;
struct      GwySciText;
struct      GwySciTextClass;
GtkWidget*  gwy_sci_text_new                ();
gchar*      gwy_sci_text_get_text           (GwySciText *sci_text);
void        gwy_sci_text_set_text           (GwySciText *sci_text,
                                             const gchar *new_text);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----GtkVBox
                                 +----GwySciText

Implemented Interfaces

GwySciText implements AtkImplementorIface.

Description

Details

GwySciTextParams

typedef struct {
    GString *ent_text;
    GString *utf_text;

    PangoFontDescription *label_font;
} GwySciTextParams;


struct GwySciText

struct GwySciText;


struct GwySciTextClass

struct GwySciTextClass {

    GtkVBoxClass parent_class;

    gpointer reserved1;
    gpointer reserved2;
};


gwy_sci_text_new ()

GtkWidget*  gwy_sci_text_new                ();

Returns :

gwy_sci_text_get_text ()

gchar*      gwy_sci_text_get_text           (GwySciText *sci_text);

Returns the text.

The text is already in UTF-8 with all entities converted.

sci_text: A science text widget.
Returns : The text as a newly allocated string. It should be freed when no longer used.

gwy_sci_text_set_text ()

void        gwy_sci_text_set_text           (GwySciText *sci_text,
                                             const gchar *new_text);

Sets the text a science text widget displays.

It can contain both UTF-8 and entities, but attempt to convert UTF-8 `back' to entities is made.

sci_text: A science text widget.
new_text: The text to display.