eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'VariablePanelController':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: VariablePanelController


Inheritance:

   Object
   |
   +--Controller
      |
      +--VariablePanelController
         |
         +--VariableHorizontalPanelController
         |
         +--VariableVerticalPanelController

Package:
stx:libwidg
Category:
Interface-Support-Controllers
Version:
rev: 1.46 date: 2019/04/04 12:15:17
user: stefan
file: VariablePanelController.st directory: libwidg
module: stx stc-classLibrary: libwidg
Author:
Claus Gittinger

Description:


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.


Instance protocol:

event handling
o  buttonMotion: state x: bx y: by
mouse-button was moved while pressed;
clear prev handleBar and draw handle bar at new position

o  buttonPress: button x: bx y: by
button was pressed - setup resizing if a handle is hit

o  buttonRelease: button x: bx y: by
end bar-move

o  pointerEnter: state x: bx y: by
this could be send by the KDE before a button press event;
test whether the state == 0

o  pointerLeave: state
this could be send by KDE before a button press event;
test whether the state == 0

private
o  checkedHandleMovementX: bx y: by
check and return valid position a handle can be placed

o  detectHandleIndexAt: x y: y
returns the handle index at position x@y or nil if none detected

queries
o  isSnapEntered

o  isSnapEntered: anIndex

o  isSnapPressed

user operations
o  doInvertHandle
invert a handle

o  doResize
perform the resize

o  doSnapPressedX: x y: y
perform the snap press



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 21:37:11 GMT