|
|
Class: VariablePanelController
Object
|
+--Controller
|
+--VariablePanelController
|
+--VariableHorizontalPanelController
|
+--VariableVerticalPanelController
- Package:
- stx:libwidg
- Category:
- Interface-Support-Controllers
- Version:
- rev:
1.43
date: 2015/12/11 13:30:24
- user: cg
- file: VariablePanelController.st directory: libwidg
- module: stx stc-classLibrary: libwidg
- Author:
- Claus Gittinger
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.
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 send by the KDE before a button press event;
test whether the state == 0
-
pointerLeave: state
-
this could be send by the 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
|