User Guide
Advanced GUI Editing
MGUI Connectors
All GUI information is sent through View connectors. These are yellow circles with a V in the middle. The MGUI has one View output.
Anything connected to this will either draw onto the front panel or handle mouse messages from it.
View – handles all drawing and mouse messages
The two Float outputs can be used to get the size of the front panel if this is needed.
For the moment you only need to know about the output connectors. The input connectors come into play when things start getting more
advanced. We'll cover this in a later section.
GUI Connector Types
The GUI components introduce a new set of data types. Each type has it's own connector and each connector has it's own symbol. However,
the symbols all have the yellow circle in common to show that they are GUI related.
We saw these first in the chapter on Data Types:
View – transports all drawing and mouse information
Area – an are defined by coordinates of top-left corner, a width and a height
Mouse – mouse events (left button up/down, mouse move etc.)
Colour – in argb format (‘a’ is the transparency level)
Pen – for drawing lines – defined by colour, thickness and style
Font – font information comprising typeface, size and style
String Format – alignment information for drawing text
Bitmap – 32bit image
Point Array – an array of points (floating point pairs)
Bitmap Array – an array of bitmaps
88 of 212