AdgTextual — An interface for entities that embeds text
AdgTextual; void adg_textual_set_font_dress (AdgTextual *textual, AdgDress dress); AdgDress adg_textual_get_font_dress (AdgTextual *textual); void adg_textual_set_text (AdgTextual *textual, const gchar *text); gchar * adg_textual_dup_text (AdgTextual *textual); void adg_textual_text_changed (AdgTextual *textual, const gchar *old_text);
The AdgTextual interface should be implemented by entities that can be expressed by text. AdgToyText is a typical case but also more complex entities could implement it.
void adg_textual_set_font_dress (AdgTextual *textual, AdgDress dress);
Sets the font dress of textual to dress.
|
|
an object that implements AdgTextual |
|
|
the new dress |
AdgDress adg_textual_get_font_dress (AdgTextual *textual);
Gets the current font dress of textual, eventually resolved to
an AdgFontStyle before the rendering.
|
|
an object that implements AdgTextual |
|
Returns : |
the current font dress of textual
|
void adg_textual_set_text (AdgTextual *textual, const gchar *text);
Sets a new text on textual. If text is the same as the old text
no actions are performed, otherwise the set_text() virtual method
is called and the "text-changed" signal is emitted.
|
|
an object that implements AdgTextual |
|
|
the new text to be set |
gchar * adg_textual_dup_text (AdgTextual *textual);
Gets a duplicate of the current text bound to textual.
|
|
an object that implements AdgTextual |
|
Returns : |
the current text of textual: free with g_free() when finished
|
void adg_textual_text_changed (AdgTextual *textual, const gchar *old_text);
Emits the "text-changed" signal on textual.
This function is only useful when creating a new class that implements the AdgTextual interface.
|
|
an object that implements AdgTextual |
|
|
the old text bound to textual
|
"font-dress" property"font-dress" AdgDress : Read / Write
The font dress to use for rendering this text.
Allowed values: [G_MAXINT,G_MININT]
Default value: 0
"text-changed" signalvoid user_function (AdgTextual *textual, gpointer old_text, gpointer user_data) : Run Last
Emitted whenever the text of textual has been changed.
|
|
an entity that implements AdgTextual |
|
|
the old text |
|
|
user data set when the signal handler was connected. |
AdgTextualwas last modified by gtk-doc on Sun 20 Mar 2011 09:36:52 PM CET