|
Class: VariablePanelController
Object
|
+--Controller
|
+--VariablePanelController
|
+--VariableHorizontalPanelController
|
+--VariableVerticalPanelController
- Package:
- stx:libwidg
- Category:
- Interface-Support-Controllers
- Version:
- rev:
1.52
date: 2021/11/18 12:08:07
- user: cg
- file: VariablePanelController.st directory: libwidg
- module: stx stc-classLibrary: libwidg
An abstract class for variablePanel controllers;
normally, not used directly by applications, these are created automatically
whenever a variablePanel is created.
Instances are responsible for tracking the mouse pointer and resize the
views (a panel) subviews as appropriate.
copyrightCOPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
forcedOpaqueResizing: aBoolean
-
can be set to false or true to force a mode.
If never set, it will be determined by a flag in the userSettings
event handling
-
buttonMotion: state x: bx y: by
-
mouse-button was moved while pressed;
clear prev handleBar and draw handle bar at new position
-
buttonPress: button x: bx y: by
-
button was pressed - setup resizing if a handle is hit
-
buttonRelease: button x: bx y: by
-
end bar-move
-
pointerEnter: state x: bx y: by
-
this could be sent by the KDE before a button press event;
test whether the state == 0
-
pointerLeave: state
-
this could be sent by KDE before a button press event;
test whether the state == 0
private
-
checkedHandleMovementX: bx y: by
-
check and return valid position a handle can be placed
-
detectHandleIndexAt: x y: y
-
returns the handle index at position x@y or nil if none detected
queries
-
isSnapEntered
-
-
isSnapEntered: anIndex
-
-
isSnapPressed
-
user operations
-
doInvertHandle
-
invert a handle
-
doResize
-
perform the resize
-
doSnapPressedX: x y: y
-
perform the snap press
|