Package: gtk

Function gtk-entry-cursor-hadjustment

Lambda List

gtk-entry-cursor-hadjustment (entry)

Syntax

(gtk-entry-cursor-hadjustment entry) => adjustment
(setf (gtk-entry-cursor-hadjustment entry) adjustment)

Arguments

entry -- a gtk-entry widget
adjustment -- an gtk-adjustment object which should be adjusted when the cursor is moved, or nil

Details

Accessor of the horizontal cursor adjustment for the entry.

Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position.

See the gtk-scrolled-window-hadjustment function for a typical way of obtaining the adjustment. The adjustment has to be in pixel units and in the same coordinate system as the entry.
 

See also

2021-11-3