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.52 date: 2021/11/18 12:08:07
user: cg
file: VariablePanelController.st directory: libwidg
module: stx stc-classLibrary: libwidg

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.

copyright

COPYRIGHT (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.

Instance protocol:

accessing
o  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
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 sent by the KDE before a button press event;
test whether the state == 0

o  pointerLeave: state
this could be sent 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 13:15:43 GMT