-module(silk@window). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([cache_best_size/2, can_set_transparent/1, capture_mouse/1, center/1, center_on_parent/1, centre/1, centre_on_parent/1, client_to_screen/3, close/1, close2/2, create/3, destroy/1, destroy_children/1, disable/1, fit/1, fit_inside/1, get_id/1, hide/1, new/0, new_2/2, refresh/1, set_background_colour/2, set_client_size/3, set_foreground_colour/2, set_help_text/2, set_id/2, set_label/2, set_name/2, set_size/3, set_size_pos/5, set_sizer/2, show/1, update/1]). -export_type([close_option/0]). -type close_option() :: {force, boolean()}. -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 40). -spec cache_best_size( silk@types:wx_object(silk@types:wx_window(any())), {integer(), integer()} ) -> {ok, nil} | {error, nil}. cache_best_size(This, Size) -> 'wxWindow':'cacheBestSize'(This, Size). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 44). -spec can_set_transparent(silk@types:wx_object(silk@types:wx_window(any()))) -> boolean(). can_set_transparent(This) -> 'wxWindow':'canSetTransparent'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 48). -spec capture_mouse(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. capture_mouse(This) -> 'wxWindow':'captureMouse'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 52). -spec center(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. center(This) -> 'wxWindow':center(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 60). -spec center_on_parent(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. center_on_parent(This) -> 'wxWindow':'centerOnParent'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 67). -spec centre(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. centre(This) -> 'wxWindow':centre(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 74). -spec centre_on_parent(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. centre_on_parent(This) -> 'wxWindow':'centreOnParent'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 86). -spec client_to_screen( silk@types:wx_object(silk@types:wx_window(any())), GDT, GDT ) -> {integer(), integer()}. client_to_screen(This, X, Y) -> 'wxWindow':'clientToScreen'(This, X, Y). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 90). -spec close(silk@types:wx_object(silk@types:wx_window(any()))) -> boolean(). close(This) -> 'wxWindow':close(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 98). -spec close2( silk@types:wx_object(silk@types:wx_window(any())), list(close_option()) ) -> boolean(). close2(This, Options) -> 'wxWindow':close(This, Options). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 107). -spec create( silk@types:wx_object(silk@types:wx_window(GDZ)), silk@types:wx_object(silk@types:wx_window(GDZ)), integer() ) -> boolean(). create(This, Parent, Id) -> 'wxWindow':create(This, Parent, Id). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 116). -spec destroy(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. destroy(This) -> 'wxWindow':destroy(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 119). -spec destroy_children(silk@types:wx_object(silk@types:wx_window(any()))) -> boolean(). destroy_children(This) -> 'wxWindow':'destroyChildren'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 122). -spec disable(silk@types:wx_object(silk@types:wx_window(any()))) -> boolean(). disable(This) -> 'wxWindow':disable(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 158). -spec fit(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. fit(This) -> 'wxWindow':fit(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 161). -spec fit_inside(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. fit_inside(This) -> 'wxWindow':'fitInside'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 236). -spec get_id(silk@types:wx_object(silk@types:wx_window(any()))) -> integer(). get_id(This) -> 'wxWindow':'getId'(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 314). -spec hide(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. hide(This) -> 'wxWindow':hide(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 389). -spec new() -> silk@types:wx_object(silk@types:wx_window(any())). new() -> 'wxWindow':new(). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 392). -spec new_2(silk@types:wx_object(silk@types:wx_window(GES)), integer()) -> silk@types:wx_object(silk@types:wx_window(GES)). new_2(Parent, Id) -> 'wxWindow':new(Parent, Id). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 416). -spec refresh(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. refresh(This) -> 'wxWindow':refresh(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 461). -spec set_background_colour( silk@types:wx_object(silk@types:wx_window(any())), {integer(), integer(), integer(), integer()} ) -> boolean(). set_background_colour(This, Colour) -> 'wxWindow':'setBackgroundColour'(This, Colour). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 473). -spec set_client_size( silk@types:wx_object(silk@types:wx_window(any())), integer(), integer() ) -> {ok, nil} | {error, nil}. set_client_size(This, Width, Height) -> 'wxWindow':'setClientSize'(This, Width, Height). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 500). -spec set_foreground_colour( silk@types:wx_object(silk@types:wx_window(any())), {integer(), integer(), integer(), integer()} ) -> {ok, nil} | {error, nil}. set_foreground_colour(This, Colour) -> 'wxWindow':'setForegroundColour'(This, Colour). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 503). -spec set_help_text(silk@types:wx_object(silk@types:wx_window(any())), binary()) -> {ok, nil} | {error, nil}. set_help_text(This, Help_text) -> 'wxWindow':'setHelpText'(This, Help_text). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 506). -spec set_id(silk@types:wx_object(silk@types:wx_window(any())), integer()) -> {ok, nil} | {error, nil}. set_id(This, Winid) -> 'wxWindow':'setId'(This, Winid). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 509). -spec set_label(silk@types:wx_object(silk@types:wx_window(any())), binary()) -> nil. set_label(This, Label) -> 'wxWindow':'setLabel'(This, Label). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 518). -spec set_name(silk@types:wx_object(silk@types:wx_window(any())), binary()) -> nil. set_name(This, Name) -> 'wxWindow':'setName'(This, Name). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 548). -spec set_size( silk@types:wx_object(silk@types:wx_window(any())), integer(), integer() ) -> {ok, nil} | {error, nil}. set_size(This, Width, Height) -> 'wxWindow':'setSize/3'(This, Width, Height). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 551). -spec set_size_pos( silk@types:wx_object(silk@types:wx_window(any())), integer(), integer(), integer(), integer() ) -> {ok, nil} | {error, nil}. set_size_pos(This, X, Y, Width, Height) -> 'wxWindow':'setSize'(This, X, Y, Width, Height). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 579). -spec set_sizer( silk@types:wx_object(silk@types:wx_window(any())), silk@types:wx_sizer(any()) ) -> nil. set_sizer(This, Sizer) -> 'wxWindow':'setSizer'(This, Sizer). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 618). -spec show(silk@types:wx_object(silk@types:wx_window(any()))) -> boolean(). show(This) -> 'wxWindow':show(This). -file("/home/reet/Code/silk/silk/src/silk/window.gleam", 636). -spec update(silk@types:wx_object(silk@types:wx_window(any()))) -> {ok, nil} | {error, nil}. update(This) -> 'wxWindow':update(This).