Class Osd-Input

Widget for editable text.

Part of:

package cityscape, class osd-numeric-input, class osd-button

Direct Superclass

osd-buttonA clickable OSD GUI button. All of the slots should signal the event-handled condition
when this ...

Direct Subclass

osd-numeric-inputWidget for editable numbers.
The writer initarg function will be automatically wrapped in
the in...

Slot

background-colourInitform:*default-background-colour*, Initargs::background-colour; Accessors:background-colour; Type:list.
font
font object to render the text in
Initform:(osd-font *application*), Initargs::font; Accessors:font; Type:font.
foreground-colourInitform:*default-foreground-colour*, Initargs::foreground-colour; Accessors:foreground-colour; Type:list.
left-clickInitargs::left-click; Accessors:left-click; Type:#'(osd-element).
lines
The actual lines of text to display. Use the text property unless you really want to explicitely set the lines.
Accessors:lines; Type:list.
middle-clickInitargs::middle-click; Accessors:middle-click; Type:#'(osd-element).
nameInitargs::name; Accessors:name; Type:symbol.
parentInitargs::parent; Accessors:parent; Type:osd-container.
right-clickInitargs::right-click; Accessors:right-click; Type:#'(osd-element).
text
The text to display.
Initargs::text; Accessors:text; Type:string.
wheelInitargs::wheel; Accessors:wheel; Type:#'(osd-element integer).
wrap
Whether or not to wrap the text to the current size.
Initform:t, Initargs::wrap; Accessors:wrap; Type:boolean.
writer
Whenever edit mode is left and the text confirmed, this callback is called with the new string.
Initargs::writer; Type:#'(t).
x
The longitudinal index of this node in its level.
Initform:0, Initargs::x; Reader:x; Type:(unsigned-byte 16).
y
The latitudinal index of this node in its level.
Initform:0, Initargs::y; Reader:y; Type:(unsigned-byte 16).

Direct Method

accept-char-p
detach
draw
draw-cursor
enter-edit-mode
finish-edit-mode
handle-mouse-buttonWhen a GUI element needs to respond to a click, implement this.
The x and y arguments are the rel...
offset-to-char-x-char-y
setftext

Other Method

cumulative-offset
current-offset-before-border
cursor-x-y-to-position
handle-mouse-wheelWhen a GUI element needs to respond to wheel motion, implement this.
The x and y arguments are th...
ideal-height
ideal-width
layout
set-borders
total-ideal-height
total-ideal-width