Previous: , Up: BLOX.Blox   [Index]


1.26.9 BLOX.Blox: widget protocol

asPrimitiveWidget

Answer the primitive widget that implements the receiver.

childrenCount

Answer how many children the receiver has

childrenDo: aBlock

Evaluate aBlock once for each of the receiver’s child widgets, passing the widget to aBlock as a parameter

destroy

Destroy the receiver

drawingArea

Answer a Rectangle identifying the receiver’s drawing area. The rectangle’s corners specify the upper-left and lower-right corners of the client area. Because coordinates are relative to the upper-left corner of a window’s drawing area, the coordinates of the rectangle’s corner are (0,0).

enabled

Answer whether the receiver is enabled to input. Although defined here, this method is only used for widgets that define a #state method

enabled: enabled

Set whether the receiver is enabled to input (enabled is a boolean). Although defined here, this method is only used for widgets that define a #state: method

exists

Answer whether the receiver has been destroyed or not (answer false in the former case, true in the latter).

fontHeight: aString

Answer the height of aString in pixels, when displayed in the same font as the receiver. Although defined here, this method is only used for widgets that define a #font method

fontWidth: aString

Answer the width of aString in pixels, when displayed in the same font as the receiver. Although defined here, this method is only used for widgets that define a #font method

isWindow

Answer whether the receiver represents a window on the screen.

parent

Answer the receiver’s parent (or nil for a top-level window).

toplevel

Answer the top-level object (typically a BWindow or BPopupWindow) connected to the receiver.

window

Answer the window in which the receiver stays. Note that while #toplevel won’t answer a BTransientWindow, this method will.

withChildrenDo: aBlock

Evaluate aBlock passing the receiver, and then once for each of the receiver’s child widgets.


Previous: , Up: BLOX.Blox   [Index]