ConductorGUI:
Filter:
Classes (extension) | Conductor | GUI | Quarks

ConductorGUI
ExtensionExtension

An Environment, determining how a Conductor is displayed
Location: NOT INSTALLED!

Description

ConductorGUI is an Enivronment whose parent environment (defined by GUIEvent) is a 'style sheet' of default gui functions that determine how a Conductor is to be displayed.

Class Methods

.new

Called internally when a new Conductor gets instantiated. Usually doesn't need to be called by the user directly.

Arguments:

conductor
keys

.osx

(describe method here)

Returns:

(describe returnvalue here)

.initClass

(describe method here)

Returns:

(describe returnvalue here)

Inherited class methods

Instance Methods

.draw

Called internally when items of a Conductor are drawn in a given window

Arguments:

win
name
key

Instance Variables

.conductor

The conductor to be displayed

.keys

An Array of keys and arrays of keys of items in the Conductor to be displayed. Each item in the array is displayed on its own line, so arrays of keys share a line. Unless overridden in guis each item identified by a key is sent a draw message.

.header

An Array of keys of items to be displayed before those in keys. Defaults to #[player, settings, preset]

.guis

An IdentityDictionary of gui functions that override the normal draw method of an item in the Conductor

.stopOnClose

Flag determines if Conductor is stopped when gui window is closed. Set to true by default calling new.

More (undocumented) Instance Methods

.resizeToFit

(describe method here)

Returns:

(describe returnvalue here)

.add

(describe method here)

Arguments:

key

(describe argument here)

gui

(describe argument here)

Returns:

(describe returnvalue here)

.reshow

(describe method here)

Returns:

(describe returnvalue here)

.show

(describe method here)

Arguments:

argName

(describe argument here)

x

(describe argument here)

y

(describe argument here)

w

(describe argument here)

h

(describe argument here)

Returns:

(describe returnvalue here)

.drawItems

(describe method here)

Arguments:

win

(describe argument here)

Returns:

(describe returnvalue here)

.addKeys

(describe method here)

Arguments:

newKeys

(describe argument here)

Returns:

(describe returnvalue here)

.resize

(describe method here)

Arguments:

pt

(describe argument here)

Returns:

(describe returnvalue here)

Using ConductorGUI

ConductorGUI defines default gui functions for the most commonly used classes within a Conductor:

The dictionary in guis can redefine how a particular key is to be drawn. Entries in this dictionary can be:

a Symbol
the symbol selects a gui function defined in ConductorGUI,
an Array
the first element of the array selects the gui function which is used to draw the remaining elements of the array.
a Function
the function receives window, name and Conductor[name] as arguments.

See the examples section for some examples on how to use these features.

Inherited instance methods

Examples