Handbook
Glossary
presentation
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Presentation gadgets
Next:
<presentation> ( label object -- button )
Vocabulary
ui
.
gadgets
.
presentations
Class description
A presentation is a
button
which represents an object. Left-clicking a presentation invokes the default
operation
, and right-clicking displays a menu of possible operations output by
object-operations
.
Presentations are created by calling
<presentation>
.
Presentations have two slots:
•
object
- the object being presented.
•
hook
- a
quotation
with stack effect
( presentation -- )
. The default value is
[ drop ]
.
Definition
USING:
ui.gadgets.buttons
;
IN:
ui.gadgets.presentations
TUPLE:
presentation
<
button
object hook
;
Methods
USING:
generic
kernel
namespaces
ui.gadgets
ui.gadgets.presentations
ui.gadgets.worlds
ui.gestures
;
M:
presentation
ungraft*
dup
hand-gadget
get-global
child?
[
dup
hide-status
]
when
M\
presentation
ungraft*
(call-next-method)
;