QtGUI:
Filter:
Classes | GUI

QtGUI : Object

Top-level controls for Qt GUI
Source: QtGUI.sc

Description

QtGUI provides top-level control for the Qt GUI bindings and some platform-level functionality.

Class Methods

QtGUI.availableStyles

Returns an array of all available styles on this platform. For use with -style.

QtGUI.cursorPosition

Gets the current position of the cursor as a Point.

QtGUI.debugLevel

QtGUI.debugLevel = level

Gets or sets the verbosity level for debug output from "QtCollider" code. SuperCollider must have been built in debug mode for messages to appear. Valid values are -1 (none), 0 (warnings only, default), 1 (most messages), and 2 (verbose). Values outside this range are effectively clipped.

QtGUI.focusView

Gets the currently focused view.

QtGUI.palette

QtGUI.palette = p

Gets or sets the QPalette used for GUI display.

QtGUI.selectedText

Gets the selected text in the currently focused view. If there is no such string then return empty string.

Internally, first calls selectedText if that method is available; otherwise, calls selectedString if that method is available. Otherwise, returns empty string.

QtGUI.stringBounds(aString, aFont)

Returns a Rect representing the size of the smallest rectangle that could contain a given string rendered with the given font.

Arguments:

aString

A String to render.

aFont

An instance of Font.

QtGUI.style

QtGUI.style = styleName

Gets or sets the current GUI style. The given style must be a String or Symbol that names one of the styles returned by -availableStyles.

Inherited class methods

Instance Methods

Inherited instance methods