Back: BLOX.BWidget-widget protocol Up: BLOX package Forward: BLOX.BWindow class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.50 BLOX.BWindow

Defined in namespace BLOX
Superclass: BLOX.BForm
Category: Graphics-Windows
I am the boss. Nothing else could be viewed or interacted with if it wasn't for me... )):->

1.50.1 BLOX.BWindow class: instance creation  (class)
1.50.2 BLOX.BWindow: accessing  (instance)
1.50.3 BLOX.BWindow: widget protocol  (instance)


1.50.1 BLOX.BWindow class: instance creation

new
Answer a new top-level window.

new: label
Answer a new top-level window with `label' as its title bar caption.

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


1.50.2 BLOX.BWindow: accessing

callback
Answer a DirectedMessage that is sent to verify whether the receiver must be destroyed when the user asks to unmap it.

callback: aReceiver message: aSymbol
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the user asks to unmap the receiver. If the method accepts an argument, the receiver is passed.

If the method returns true, the window and its children are destroyed (which is the default action, taken if no callback is set up). If the method returns false, the window is left in place.

invokeCallback
Generate a synthetic callback, destroying the window if no callback was set up or if the callback method answers true.

label
Answer the value of the label option for the widget.

Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.

label: value
Set the value of the label option for the widget.

Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.

menu: value
Set the value of the menu option for the widget.

Specifies a menu widget to be used as a menubar. On the Macintosh, the menubar will be displayed accross the top of the main monitor. On Microsoft Windows and all UNIX platforms, the menu will appear accross the toplevel window as part of the window dressing maintained by the window manager.

resizable
Answer the value of the resizable option for the widget.

Answer whether the user can be resize the window or not. If resizing is disabled, then the window's size will be the size from the most recent interactive resize or geometry-setting method. If there has been no such operation then the window's natural size will be used.

resizable: value
Set the value of the resizable option for the widget.

Answer whether the user can be resize the window or not. If resizing is disabled, then the window's size will be the size from the most recent interactive resize or geometry-setting method. If there has been no such operation then the window's natural size will be used.


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.



Back: BLOX.BWindow-accessing Up: BLOX.BWindow Forward: BLOX.Gui   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html