Handbook
Glossary
resize-window ( world dim -- )
Vocabulary
ui
Inputs
world
a
world
dim
a pair of integers: width and height
Outputs
None
Word description
Resize the native window so that its contents area (called the "client area" in Windows) has the specified dimensions.
Definition
USING:
ui.backend
;
IN:
ui
HOOK:
resize-window
ui-backend
( world dim -- )
Methods
USING:
accessors
alien.c-types
cocoa.messages
cocoa.runtime
cocoa.types
core-graphics.types
kernel
sequences
ui
ui.backend.cocoa
;
M:
cocoa-ui-backend
resize-window
[
handle>>
window>>
]
[
first2
]
bi*
<CGSize>
{
void
{
id
SEL
NSSize
}
}
"setContentSize:"
send
;
USING:
accessors
gtk2.ffi
kernel
sequences
ui
ui.backend.gtk2
;
M:
gtk2-ui-backend
resize-window
[
handle>>
window>>
]
[
first2
]
bi*
gtk_window_resize
;
USING:
kernel
ui
;
M:
object
resize-window
2drop
;