Glyph Version 7.22.2 |
pw:: NoteDatabase note type Derives Frompw::Object pw::Entity pw::DatabaseEntity Summary
create
This action creates a new database note object. Parametersnone ReturnsThis action retruns a new pw::Note object. setStyle
This command specifies the font style for the note. Parameters
ReturnsThis command returns nothing. setSize
This command specifies the local font size of the text before it is transformed. If the transformation contains a scaling component, the end size of the font will be different. Parameters
ReturnsThis command returns nothing. setTransformation
This command specifies how the text is transformed from its local XY plane into global coordinates. Normally it should be a pure rotation matrix such as specified by the rotation command of pwu::Transform, but any matrix is supported. The transformation is applied before the text is translated to its starting position. Note that if the transformation has a scaling component, the size value of the note will not be the true size of the font. If the transformation has a translation component, the start position of the text will be updated to reflect the true start position. Parameters
ReturnsThis command returns nothing. |
This action creates a new database note object.
pw::Note create
This command specifies the text for the note.
$note setText $text
This command returns the text associated with the note.
$note getText
This command specifies the lower left corner for the first character of the first line of text for the note.
$note setPosition point
This command returns the position of the lower left corner of the first character.
$note getPosition
This command specifies the font for the note.
$note setFont < SansSerif | Serif | Fixed >
This command returns the font used by the note.
$note getFont
This command specifies the font style for the note.
$note setStyle options
This command returns the style associated with the note.
$note getStyle
This command specifies the local font size of the text before it is transformed.
$note setSize size
This command returns the font size of the note as measured by the height of the letter ‘M’.
$note getSize
This command controls whether the text is written left to right or top to bottom.
$note setHorizontal value
This command returns a true value if the text is written from left to right and a false value if the text is written from top to bottom.
$note isHorizontal
This command specifies how the text is transformed from its local XY plane into global coordinates.
$note setTransformation xform
This command returns the transformation matrix used to transform the text from its local XY plane into global coordinates.
$note getTransformation