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_t
Methods
void hime_window_close(self)
Close the window.
Parameters
hime_window_t
self
Return
void
void hime_window_activate(self)
Show and focus the window.
Parameters
hime_window_t
self
Return
void
void hime_window_set_content_view(self, view)
Set the window's content view.
Parameters
hime_window_t
selfhime_view_t
view
Return
void
hime_view_t hime_window_get_content_view(self)
Get the window's content view.
Parameters
hime_window_t
self
Return
hime_view_t
void hime_window_set_bounds(self, bounds)
Resize and/or place the window to the specified bounds.
Parameters
hime_window_t
selfhime_rect_t
bounds
Return
void
hime_rect_t hime_window_get_bounds(self)
Return the bounds of the window in screen coordinates.
Parameters
hime_window_t
self
Return
hime_rect_t
void hime_window_set_size(self, size)
Resize the window to the specified size.
Parameters
hime_window_t
selfhime_size_t
size
Return
void
hime_size_t hime_window_get_size(self)
Return the restored size for the window.
Parameters
hime_window_t
self
Return
hime_size_t
void hime_window_center_to(self, size)
Resize the window to the specified size and center it.
Parameters
hime_window_t
selfhime_size_t
size
Return
void
void hime_window_set_title(self, title)
Set window title.
Parameters
hime_window_t
selfconst char16_t*
title
Return
void
const char16_t* hime_window_get_title(self)
Return window title.
Parameters
hime_window_t
self
Return
const char16_t*
Events
void hime_window_on_close(window)
Emitted when window is closed.
Parameters
hime_window_t
window
Preventable
No.