See the CAPI User Guide and Reference Manual for more details of these, unless directed otherwise. This section is not relevant to LispWorks for Mobile Runtime.
The class capi:editor-pane has a new initarg :line-numbers-p
to control the display of line numbers and new initargs :line-numbers-background
, :line-numbers-foreground
, :line-numbers-font
, :line-numbers-wrapped-string
, :line-numbers-width-string
, :line-numbers-separator-thickness
, :line-numbers-separator-color
, :line-numbers-separator-dash
, :line-numbers-right-gap
, :line-numbers-highlight-background
and :line-numbers-highlight-foreground
to specify their appearance.
The new function capi:editor-pane-set-line-numbers-appearance can be used to change the appearance of the line numbers in an existing capi:editor-pane.
The new variables capi:*editor-pane-default-line-numbers-background*, capi:*editor-pane-default-line-numbers-foreground*, capi:*editor-pane-default-line-numbers-font*, capi:*editor-pane-default-line-numbers-wrapped-string*, capi:*editor-pane-default-line-numbers-width-string*, capi:*editor-pane-default-line-numbers-separator-thickness*, capi:*editor-pane-default-line-numbers-separator-color*, capi:*editor-pane-default-line-numbers-separator-dash*, capi:*editor-pane-default-line-numbers-right-gap*, capi:*editor-pane-default-line-numbers-highlight-background* and capi:*editor-pane-default-line-numbers-highlight-foreground* provide initial values for the appearance of the line numbers.
The new initarg :editing-callback
for the class capi:collection allows in-place editing of items in a capi:tree-view or capi:list-panel.
The new functions capi:collection-item-get-editing-string, capi:collection-item-set-editing-string get and set the current in-place editing string.
The new function capi:collection-item-edit starts an in-place editing operation.
The CAPI now supports GTK+ 3 if it is available. By default, LispWorks uses GTK+ 3 if available and uses GTK+ 2 otherwise. See 19.3.1 The version of GTK+ that LispWorks uses in the CAPI User Guide and Reference Manual for more details.
The CAPI now supports Wayland on GTK+ if it is available.
The new function capi:screen-display-type returns the type of display being used by a screen if you need to distinguish between displaying on X11 or Wayland when using GTK+.
There are some differences between X11 and Wayland:
:pointing-to-x
, :pointing-to-y
, :pointing-to-width
, :pointing-to-height
and :position
.
The new function capi:force-dark-mode can be used to tell LispWorks on GTK+ to display as if in dark or not in dark mode.
The new function win32:set-dpi-awareness allows you to control what happens with scaling when displaying on a high resolution monitor on Microsoft Windows.
The new functions capi:pane-scale-factor and capi:screen-scale-factor can be used find the scale factor of a pane or a screen.
The new function capi:editor-pane-evaluate-region-in-listener evaluates a region of the buffer in a Listener.
The new functions capi:interface-displayed-p, capi:interface-fully-created-p, capi:interface-being-created-p and capi:interface-fully-destroyed-p can be used to determine the creation state of an capi:interface.
The new function capi:simple-pane-show-scroll-bars can be used to change the visibility of the scroll bars of a pane.
The new function capi:simple-pane-block-mouse-wheel can be used to block or unblock mouse wheel events for a pane.
The new function capi:quit-all-contain-interfaces tries to quit (by capi:quit-interface) all interfaces that were created using capi:contain or capi:make-container.
The new class capi:dummy-pane can be used to leave resizble gaps between other pane in a layout.
The x-ratios (or y-ratios) in a capi:grid-layout (and hence capi:row-layout or capi:column-layout) can now contain :fixed
, which allows the corresponding child pane to be resized by a divider but not when the user resizes the layout (typically by resizing the whole window).
The new function capi:set-layout-ratios-keeping-fixed can be used to set the ratios of a capi:row-layout or capi:column-layout keeping :fixed
items.
The new function capi:set-layout-description-and-ratios can be used to simultaneously set the description and ratios of a capi:row-layout or capi:column-layout, optionally keeping :fixed
items.
The new function !function!capi:grid-layout-get-sizes can be used to create a list of the sizes of the panes in a layout with dividers, which can be recorded for future use.
The :armed-image
initarg is now implemented for the class capi:button on Cocoa, like on other platforms.
The class capi:slider has a new :level-indicator-style
initarg, which makes itr display as a NSLevelIndicator
on Cocoa.
On Cocoa, the :accelerator
initarg to capi:menu-item is now allowed to specify just the Control-Option modifiers, without the Accelerator modifier. In previous releases, accelerators without the Accelerator modifier were ignored.
For example:
:accelerator "Control-Option-a"
The class capi:text-input-pane has a new initarg :alignment
which controls the horizontal alignment of the text in the pane.
On Microsoft Windows, the class capi:tree-view has a new initarg :has-lines
, which specifies if the pane has buttons for expanding child nodes and/or lines between nodes, and if these are present for the root nodes. This replaces the :has-root-line
initarg, which is not deprecated.
On Microsoft Windows, double clicking on the separator between columns in the header of a multi-column list-panel now resizes the column to fit its contents. Cocoa and GTK already did this.
The :horizontal-scroll
initarg now works for capi:tree-view on Microsoft Windows. This has the effect of turning off horizontal scrolling by default. In previous releases, horizontal scrolling was enabled regardless of the value of the :horizontal-scroll
initarg.
The new generic functions capi:editor-pane-in-place-style, capi:editor-pane-arglist-displayer-style and capi:text-input-pane-in-place-style can be specialized for subclasses of capi:editor-pane and capi:text-input-pane to control the color and font used by in-place completion dialogs and the arglist displayer.
The functions capi:clipboard, capi:clipboard-empty, capi:selection and capi:selection-empty are now documented to return a second value. They have always done this, but it was not documented.
Release Notes and Installation Guide - 25 Feb 2025 19:14:05