Top |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── TeplOverwriteIndicator
TeplOverwriteIndicator indicates the mode in which text edition occurs: insert or overwrite.
See for example the “overwrite” property.
The usual case is to pack this widget in a GtkStatusbar.
It is planned to extend this widget to be able to click on / activate it to change the mode, with a GtkPopover for example (but this would be optional, with a "chooser" boolean construct-only property).
With a different styling when in overwrite mode.
Because not everybody is familiar with the key on the keyboard to switch between the different modes.
TeplOverwriteIndicator *
tepl_overwrite_indicator_new (void
);
Since: 6.4
gboolean
tepl_overwrite_indicator_get_overwrite
(TeplOverwriteIndicator *indicator
);
Since: 6.4
void tepl_overwrite_indicator_set_overwrite (TeplOverwriteIndicator *indicator
,gboolean overwrite
);
Sets a new value to the “overwrite” property.
Since: 6.4
void tepl_overwrite_indicator_set_view (TeplOverwriteIndicator *indicator
,GtkTextView *view
);
Sets a GtkTextView to update automatically the state of indicator
according
to view
. If view
is NULL
, then indicator
will be empty.
Since: 6.4