| |
WordGameLetterMorph
category: Morphic-Games
superclass: BorderedMorph
subclasses:
WordGameLetterMorph implements letter boxes for type-in and display of letter in word games. Several variant displays are supported, depending on the setting of style, and blanks can be displayed as black boxes or empty letter boxes.
Default support for type-in is distributed between this class and WordGamePaneMorph
letter the Character stored in this morph.
Can be either blank or nil as well as a letter.
indexInQuote a retained copy of the index of this character
Facilitates responses to, eg, clicking or typing in this box.
If indexInQuote==nil, then this is displayed as a black box
predecessor another LetterMorph or nil
Used for linked typing and, eg, word selection
successor another LetterMorph or nil
Used for linked typing and, eg, word selection
style a Symbol, one of #(plain boxed underlined)
Boxed and underlined display further depends on whether
the id strings are nil or not.
Each format has an associated default size
The following two variables are also submorphs, as are the id strings if present.
letterMorph a StringMorph for displaying the letter
Used when changing the letter to be displayed
lineMorph a PolygonMorph used to display the underline
and also to place the id string in underlined format




|
|