Handbook
Glossary
set-title ( string world -- )
Factor handbook
»
UI framework
»
Developing UI backends
»
UI backend window management
Prev:
register-window ( world handle -- )
Next:
raise-window ( gadget -- )
Vocabulary
ui
.
backend
Inputs
string
a
string
world
a
world
Outputs
None
Word description
Sets the title bar of the native window containing the world.
Definition
IN:
ui.backend
HOOK:
set-title
ui-backend
( string world -- )
Methods
USING:
accessors
alien.c-types
cocoa.application
cocoa.messages
cocoa.runtime
kernel
ui.backend
ui.backend.cocoa
;
M:
cocoa-ui-backend
set-title
handle>>
window>>
swap
<NSString>
{
void
{
id
SEL
id
}
}
"setTitle:"
send
;
USING:
accessors
alien.strings
gtk2.ffi
io.encodings.utf8
kernel
ui.backend
ui.backend.gtk2
;
M:
gtk2-ui-backend
set-title
swap
[
handle>>
window>>
]
[
utf8
string>alien
]
bi*
gtk_window_set_title
;