Next: , Previous: , Up: BLOX.Blox   [Index]


1.26.4 BLOX.Blox class: utility

active

Answer the currently active Blox, or nil if the focus does not belong to a Smalltalk window.

at: aPoint

Answer the Blox containing the given point on the screen, or nil if no Blox contains the given point (either because no Smalltalk window is there or because it is covered by another window).

atMouse

Answer the Blox under the mouse cursor’s hot spot, or nil if no Blox contains the given point (either because no Smalltalk window is there or because it is covered by another window).

beep

Produce a bell

clearClipboard

Clear the clipboard, answer its old contents.

clipboard

Retrieve the text in the clipboard.

clipboard: aString

Set the contents of the clipboard to aString (or empty the clipboard if aString is nil).

createColor: red green: green blue: blue

Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given RGB components (range is 0~65535).

createColor: cyan magenta: magenta yellow: yellow

Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given CMY components (range is 0~65535).

createColor: cyan magenta: magenta yellow: yellow black: black

Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given CMYK components (range is 0~65535).

createColor: hue saturation: sat value: value

Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given HSV components (range is 0~65535).

defaultFont

Answer the default font used by Blox.

fonts

Answer the names of the font families in the system. Additionally, ‘Times’, ‘Courier’ and ‘Helvetica’ are always made available.

mousePointer

If the mouse pointer is on the same screen as the application’s windows, returns a Point containing the pointer’s x and y coordinates measured in pixels in the screen’s root window (under X, if a virtual root window is in use on the screen, the position is computed in the whole desktop, not relative to the top-left corner of the currently shown portion). If the mouse pointer isn’t on the same screen as window then answer nil.

platform

Answer the platform on which Blox is running; it can be either #unix, #macintosh or #windows.

screenOrigin

Answer a Point indicating the coordinates of the upper left point of the screen in the virtual root window on which the application’s windows are drawn (under Windows and the Macintosh, that’s always 0 @ 0)

screenResolution

Answer a Point containing the resolution in dots per inch of the screen, in the x and y directions.

screenSize

Answer a Point containing the size of the virtual root window on which the application’s windows are drawn (under Windows and the Macintosh, that’s the size of the screen)


Next: , Previous: , Up: BLOX.Blox   [Index]