Package: gtk

CStruct gtk:text-view-class

Declaration

(cffi:defcstruct text-view-class
  ;; Parent class
  (:parent-class (:struct gtk:widget-class))
  ;; Virtual functions
  (move-cursor :pointer)
  (set-anchor :pointer)
  (insert-at-cursor :pointer)
  (delete-from-cursor :pointer)
  (backspace :pointer)
  (cut-clipboard :pointer)
  (copy-clipboard :pointer)
  (paste-clipboard :pointer)
  (toggle-overwrite :pointer)
  (create-buffer :pointer)
  (snapshot-layer :pointer)
  (extend-selection :pointer)
  (insert-emoji :pointer)
  ;; Private
  (padding :pointer :count 8))  

Values

parent-class
The object class structure needs to be the first.
move-cursor
The class handler for the "move-cursor" keybinding signal.
set-anchor
The class handler for the "set-anchor" keybinding signal.
insert-at-cursor
The class handler for the "insert-at-cursor" keybinding signal.
delete-from-cursor
The class handler for the "delete-from-cursor" keybinding signal.
backspace
The class handler for the "backspace" keybinding signal.
cut-clipboard
The class handler for the "cut-clipboard" keybinding signal.
copy-clipboard
The class handler for the "copy-clipboard" keybinding signal.
past-clipboard
The class handler for the "paste-clipboard" keybinding signal.
toggle-overwrite
The class handler for the "toggle-overwrite" keybinding signal.
create-buffer
This virtual function is called to create the gtk:text-buffer object for the text view. The default implementation is to just call the gtk:text-buffer-new function.
snapshot-layer
This virtual function is called before and after the text view is drawing its own text. Applications can override this virtual function in a subclass to draw customized content underneath or above the text. In the :below-text and :above-text layers the drawing is done in the buffer coordinate space.
extend-selection
The class handler for the "extend-selection" signal.
insert-emoji
The class handler for the "insert-emoji" signal.

Details

The class structure for the gtk:text-view class.
 

See also

2025-10-26