Class Osd-Numeric-Input

Widget for editable numbers.
The writer initarg function will be automatically wrapped in
the initialize-instance so that it is given a number as the first argument.

Part of:

package cityscape, class osd-input

Direct Superclass

osd-inputWidget for editable text.

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.
number-type
A typespec of the type to coerce the number into on write.
Initform:'single-float, Initargs::number-type; Accessors:number-type; Type:(or symbol cons).
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

Other Method

cumulative-offset
current-offset-before-border
cursor-x-y-to-position
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...
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
offset-to-char-x-char-y
set-borders
setftext
total-ideal-height
total-ideal-width