![]() |
![]() |
![]() |
![]() |
GtkTextBuffer * | buffer | Read / Write / Construct |
TalkatuView * | input | Read |
gboolean | show-send-button | Read / Write / Construct |
gboolean | show-toolbar | Read / Write / Construct |
TalkatuToolbar * | toolbar | 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_input (TalkatuEditor *editor
);
Gets the TalkatuInput that editor
is using.
GtkTextBuffer *
talkatu_editor_get_buffer (TalkatuEditor *editor
);
Gets the GtkTextBuffer for the internal input.
void talkatu_editor_set_buffer (TalkatuEditor *editor
,GtkTextBuffer *buffer
);
Sets the GtkTextBuffer for the internal input 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, TalkatuInput, and an optional send button in the common instant messaging input layout.
“buffer”
property“buffer” GtkTextBuffer *
The GtkTextBuffer for the view.
Owner: TalkatuEditor
Flags: Read / Write / Construct
“show-send-button”
property“show-send-button” gboolean
Whether or not to show the send button.
Owner: TalkatuEditor
Flags: Read / Write / Construct
Default value: FALSE
“show-toolbar”
property“show-toolbar” gboolean
Whether or not to show the toolbar.
Owner: TalkatuEditor
Flags: Read / Write / Construct
Default value: TRUE
“toolbar”
property“toolbar” TalkatuToolbar *
The toolbar widget.
Owner: TalkatuEditor
Flags: Read