Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | talkatu_editor_new () |
GtkWidget * | talkatu_editor_get_toolbar () |
void | talkatu_editor_set_toolbar_visible () |
gboolean | talkatu_editor_get_toolbar_visible () |
GtkWidget * | talkatu_editor_get_view () |
GtkTextBuffer * | talkatu_editor_get_buffer () |
void | talkatu_editor_set_buffer () |
gboolean | talkatu_editor_get_send_button_visible () |
void | talkatu_editor_set_send_button_visible () |
GtkTextBuffer * | buffer | Read / Write / Construct |
gboolean | show-send-button | Read / Write / Construct |
gboolean | show-toolbar | Read / Write / Construct |
TalkatuToolbar * | toolbar | Read |
TalkatuView * | view | Read |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── TalkatuEditor
TalkatuEditor implements AtkImplementorIface, GtkBuildable and GtkOrientable.
TalkatuEditor is a composite widget of TalkatuToolbar and TalkatuView to help make them easier to use.
GtkWidget *
talkatu_editor_new (void
);
Creates a new TalkatuEditor with a normal GtkTextBuffer.
GtkWidget *
talkatu_editor_get_toolbar (TalkatuEditor *editor
);
Gets the TalkatuToolbar that editor
is using.
void talkatu_editor_set_toolbar_visible (TalkatuEditor *editor
,gboolean visible
);
Makes the toolbar visible if visible
is TRUE
otherwise hides it.
gboolean
talkatu_editor_get_toolbar_visible (TalkatuEditor *editor
);
Returns whether or not the toolbar is visible.
GtkWidget *
talkatu_editor_get_view (TalkatuEditor *editor
);
Gets the TalkatuView that editor
is using.
GtkTextBuffer *
talkatu_editor_get_buffer (TalkatuEditor *editor
);
Gets the GtkTextBuffer for the internal view.
void talkatu_editor_set_buffer (TalkatuEditor *editor
,GtkTextBuffer *buffer
);
Sets the GtkTextBuffer for the internal view to buffer
.
gboolean
talkatu_editor_get_send_button_visible
(TalkatuEditor *editor
);
Returns whether or not the send button is visible.
void talkatu_editor_set_send_button_visible (TalkatuEditor *editor
,gboolean visible
);
Sets the visibility of the send button depending on visible
.
editor |
The TalkatuEditor instance. |
|
visible |
Whether or not the send button should be visible. |
#define TALKATU_TYPE_EDITOR (talkatu_editor_get_type())
The standard _get_type macro for TalkatuEditor.
typedef struct _TalkatuEditor TalkatuEditor;
A composite widget that contains a TalkatuToolbar, TalkatuView, and an optional send button in the common instant messaging input layout.
“buffer”
property “buffer” GtkTextBuffer *
The GtkTextBuffer for the view.
Flags: Read / Write / Construct
“show-send-button”
property “show-send-button” gboolean
Whether or not to show the send button.
Flags: Read / Write / Construct
Default value: FALSE
“show-toolbar”
property “show-toolbar” gboolean
Whether or not to show the toolbar.
Flags: Read / Write / Construct
Default value: TRUE