Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gwy_sci_text_new () |
gchar * | gwy_sci_text_get_markup () |
void | gwy_sci_text_set_markup () |
gboolean | gwy_sci_text_get_has_preview () |
void | gwy_sci_text_set_has_preview () |
GtkWidget * | gwy_sci_text_get_entry () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GwySciText
gchar *
gwy_sci_text_get_markup (GwySciText *scitext
);
Gets the markup in a scientific text entry.
The returned string may contain Pango markup. Use pango_parse_markup()
to remove it if clean text is required.
void gwy_sci_text_set_markup (GwySciText *scitext
,const gchar *markup
);
Sets the text a scientific text widget displays.
The text can contain Pango markup. In principle, the markup can even be more general than the one produced by GwySciText itself. The user will not be able to edit such markup using the buttons, but can still do so manually.
gboolean
gwy_sci_text_get_has_preview (GwySciText *scitext
);
Tests the display of a preview in a scientific text entry.
void gwy_sci_text_set_has_preview (GwySciText *scitext
,gboolean has_preview
);
Sets the display of a preview in a scientific text entry.
GtkWidget *
gwy_sci_text_get_entry (GwySciText *scitext
);
Gets the entry widget of a scientific text entry.
It can be used as a target of a mnemonic label or possibly to watch all changes (not just changes to a valid markup).
“edited”
signalvoid user_function (GwySciText *gwyscitext, gpointer user_data)
The ::edited signal is emitted when the text in its entry changes to a valid markup. If you need to react to
all changes in entry contents, you can use gwy_sci_text_get_entry()
to get the entry and connect to its signal.
gwyscitext |
The GwySciText which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First