Package ch.bailu.gtk.gtk
Interface Text.OnDeleteFromCursor
- Enclosing class:
- Text
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDeleteFromCursor
(int type, int count) Emitted when the user initiates a text deletion.
-
Method Details
-
onDeleteFromCursor
void onDeleteFromCursor(int type, int count) Emitted when the user initiates a text deletion.
This is a [keybinding signal](class.SignalAction.html).
If the @type is %GTK_DELETE_CHARS, GTK deletes the selection
if there is one, otherwise it deletes the requested number
of characters.
The default bindings for this signal are <kbd>Delete</kbd>
for deleting a character and <kbd>Ctrl</kbd>-<kbd>Delete</kbd>
for deleting a word.- Parameters:
type
- the granularity of the deletion, as a `GtkDeleteType`count
- the number of @type units to delete
-