Previous: , Up: BLOX.BWindow   [Index]


1.50.3 BLOX.BWindow: widget protocol

center

Center the window in the screen

centerIn: view

Center the window in the given widget

height

Answer the height of the window, as deduced from the geometry that the window manager imposed on the window.

height: anInteger

Ask the window manager to give the given height to the window.

heightAbsolute

Answer the height of the window, as deduced from the geometry that the window manager imposed on the window.

heightOffset: value

This method should not be called for instances of this class.

iconify

Map a window and in iconified state. If a window has not been mapped yet, this is achieved by mapping the window in withdrawn state first, and then iconifying it.

isMapped

Answer whether the window is mapped

isWindow

Answer ‘true’.

map

Map the window and bring it to the topmost position in the Z-order.

modalMap

Map the window while establishing an application-local grab for it. An event loop is started that ends only after the window has been destroyed.

When a grab is set for a particular window, all pointer events are restructed to the grab window and its descendants in Blox’s window hierarchy. Whenever the pointer is within the grab window’s subtree, the pointer will behave exactly the same as if there had been no grab grab at all and all events will be reported in the normal fashion. When the pointer is outside the window’s tree, button presses and releases and mouse motion events are reported to the grabbing window, and window entry and window exit events are ignored. In other words, windows outside the grab subtree will be visible on the screen but they will be insensitive until the grab is released. The tree of windows underneath the grab window can include top-level windows, in which case all of those top-level windows and their descendants will continue to receive mouse events during the grab. Keyboard events (key presses and key releases) are delivered as usual: the window manager controls which application receives keyboard events, and if they are sent to any window in the grabbing application then they are redirected to the window owning the focus.

state

Set the value of the state option for the window.

Specifies one of four states for the window: either normal, iconic, withdrawn, or (Windows only) zoomed.

state: aSymbol

Raise an error. To set a BWindow’s state, use #map and #unmap.

unmap

Unmap a window, causing it to be forgotten about by the window manager

width

Answer the width of the window, as deduced from the geometry that the window manager imposed on the window.

width: anInteger

Ask the window manager to give the given width to the window.

width: xSize height: ySize

Ask the window manager to give the given width and height to the window.

widthAbsolute

Answer the width of the window, as deduced from the geometry that the window manager imposed on the window.

widthOffset: value

This method should not be called for instances of this class.

window

Answer the receiver.

x

Answer the x coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.

x: anInteger

Ask the window manager to move the window’s left border to the given x coordinate, keeping the size unchanged

x: xPos y: yPos

Ask the window manager to move the window’s top-left corner to the given coordinates, keeping the size unchanged

x: xPos y: yPos width: xSize height: ySize

Ask the window manager to give the requested geometry to the window.

xAbsolute

Answer the x coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.

xOffset: value

This method should not be called for instances of this class.

y

Answer the y coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.

y: anInteger

Ask the window manager to move the window’s left border to the given y coordinate, keeping the size unchanged

yAbsolute

Answer the y coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.

yOffset: value

This method should not be called for instances of this class.


Previous: , Up: BLOX.BWindow   [Index]