All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

output-pane-resize

Generic Function
Summary

Called when an output-pane is resized.

Package

capi

Signature

output-pane-resize output-pane x y width height

Method signature

output-pane-resize output-pane t t t t

Arguments

output-pane

An output-pane.

x , y , width , height

Non-negative integers.

Description

The generic function output-pane-resize is called when the output-pane output-pane is resized. width and height specify the new width and height. x and y specify the position, but are not reliable and should not be used.

output-pane-resize should not called by the user.

The primary method specialized on output-pane sets up internal slots and calls the resize-callback .

Notes
  1. Normally you respond to resizing by specifying the resize-callback with the :resize-callback initarg. It is useful to define your own output-pane-resize method only when you define your own subclass of output-pane which needs to do something when resizing, and you want to allow different resize-callback s for individual instances of this class.
  2. output-pane-resize should not draw anything. Newly-exposed areas are automatically displayed by a later call to the display-callback . If areas that are already exposed need redrawing, output-pane-resize should call invalidate-rectangle to mark these areas for the display-callback .
See also

output-pane
invalidate-rectangle


CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017

NextPrevUpTopContentsIndex