Window
Top-level window.
| Category | refcounted |
| Type | hime_window_t |
| Inherits | hime_object_t |
Constructors
hime_window_t hime_window_create(options)
Create a new window.
Parameters
hime_window_options_t*options
Return
hime_window_tMethods
void hime_window_close(self)
Close the window.
Parameters
hime_window_tself
Return
voidvoid hime_window_activate(self)
Show and focus the window.
Parameters
hime_window_tself
Return
voidvoid hime_window_set_content_view(self, view)
Set the window's content view.
Parameters
hime_window_tselfhime_view_tview
Return
voidhime_view_t hime_window_get_content_view(self)
Get the window's content view.
Parameters
hime_window_tself
Return
hime_view_tvoid hime_window_set_bounds(self, bounds)
Resize and/or place the window to the specified bounds.
Parameters
hime_window_tselfhime_rect_tbounds
Return
voidhime_rect_t hime_window_get_bounds(self)
Return the bounds of the window in screen coordinates.
Parameters
hime_window_tself
Return
hime_rect_tvoid hime_window_set_size(self, size)
Resize the window to the specified size.
Parameters
hime_window_tselfhime_size_tsize
Return
voidhime_size_t hime_window_get_size(self)
Return the restored size for the window.
Parameters
hime_window_tself
Return
hime_size_tvoid hime_window_center_to(self, size)
Resize the window to the specified size and center it.
Parameters
hime_window_tselfhime_size_tsize
Return
voidvoid hime_window_set_title(self, title)
Set window title.
Parameters
hime_window_tselfconst char16_t*title
Return
voidconst char16_t* hime_window_get_title(self)
Return window title.
Parameters
hime_window_tself
Return
const char16_t*Events
void hime_window_on_close(window)
Emitted when window is closed.
Parameters
hime_window_twindow
Preventable
No.