Window

Top-level window.

Categoryrefcounted
Typehime_window_t
Inheritshime_object_t

Constructors

hime_window_t hime_window_create(options)

Create a new window.

Parameters

Return

hime_window_t

Methods

void hime_window_close(self)

Close the window.

Parameters

Return

void

void hime_window_activate(self)

Show and focus the window.

Parameters

Return

void

void hime_window_set_content_view(self, view)

Set the window's content view.

Parameters

Return

void

hime_view_t hime_window_get_content_view(self)

Get the window's content view.

Parameters

Return

hime_view_t

void hime_window_set_bounds(self, bounds)

Resize and/or place the window to the specified bounds.

Parameters

Return

void

hime_rect_t hime_window_get_bounds(self)

Return the bounds of the window in screen coordinates.

Parameters

Return

hime_rect_t

void hime_window_set_size(self, size)

Resize the window to the specified size.

Parameters

Return

void

hime_size_t hime_window_get_size(self)

Return the restored size for the window.

Parameters

Return

hime_size_t

void hime_window_center_to(self, size)

Resize the window to the specified size and center it.

Parameters

Return

void

void hime_window_set_title(self, title)

Set window title.

Parameters

Return

void

const char16_t* hime_window_get_title(self)

Return window title.

Parameters

Return

const char16_t*

Events

void hime_window_on_close(window)

Emitted when window is closed.

Parameters

Preventable

No.