This mapping has 2 multi-map groups: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–866 unchanged (866 lines)
867 #[cfg(desktop)]
868 {
869 window = window
870 .title(config.title.to_string())
871 .inner_size(config.width, config.height)
872 .focused(config.focus)
873 .visible(config.visible)
874 .resizable(config.resizable)
875 .fullscreen(config.fullscreen)
876 .decorations(config.decorations)
877 .maximized(config.maximized)
878 .always_on_bottom(config.always_on_bottom)
879 .always_on_top(config.always_on_top)
…lines 880–1030 unchanged (151 lines)
1031 }
1032
1033 fn focused(mut self, focused: bool) -> Self {
1034 self.inner = self.inner.with_focused(focused);
1035 self
1036 }
1037
1038 fn maximized(mut self, maximized: bool) -> Self {
1039 self.inner = self.inner.with_maximized(maximized);
1040 self
1041 }
1042
1043 fn visible(mut self, visible: bool) -> Self {
…lines 1044–1351 unchanged (308 lines)
1352 SetSizeConstraints(WindowSizeConstraints),
1353 SetPosition(Position),
1354 SetFullscreen(bool),
1355 #[cfg(target_os = "macos")]
1356 SetSimpleFullscreen(bool),
1357 SetFocus,
1358 SetIcon(TaoWindowIcon),
1359 SetSkipTaskbar(bool),
1360 SetCursorGrab(bool),
1361 SetCursorVisible(bool),
1362 SetCursorIcon(CursorIcon),
1363 SetCursorPosition(Position),
1364 SetIgnoreCursorEvents(bool),
…lines 1365–2233 unchanged (869 lines)
2234 fn set_focus(&self) -> Result<()> {
2235 send_user_message(
2236 &self.context,
2237 Message::Window(self.window_id, WindowMessage::SetFocus),
2238 )
2239 }
2240
2241 fn set_icon(&self, icon: Icon) -> Result<()> {
2242 send_user_message(
2243 &self.context,
2244 Message::Window(
2245 self.window_id,
2246 WindowMessage::SetIcon(TaoIcon::try_from(icon)?.0),
…lines 2247–3375 unchanged (1129 lines)
3376 window.set_simple_fullscreen(enable);
3377 }
3378
3379 WindowMessage::SetFocus => {
3380 window.set_focus();
3381 }
3382 WindowMessage::SetIcon(icon) => {
3383 window.set_window_icon(Some(icon));
3384 }
3385 #[allow(unused_variables)]
3386 WindowMessage::SetSkipTaskbar(skip) => {
3387 #[cfg(any(windows, target_os = "linux"))]
3388 let _ = window.set_skip_taskbar(skip);
…lines 3389–5156 unchanged (1768 lines)

After

…lines 1–866 unchanged (866 lines)
867 #[cfg(desktop)]
868 {
869 window = window
870 .title(config.title.to_string())
871 .inner_size(config.width, config.height)
872 .focused(config.focus)
873 .focusable(config.focusable)
874 .visible(config.visible)
875 .resizable(config.resizable)
876 .fullscreen(config.fullscreen)
877 .decorations(config.decorations)
878 .maximized(config.maximized)
879 .always_on_bottom(config.always_on_bottom)
880 .always_on_top(config.always_on_top)
…lines 881–1032 unchanged (152 lines)
1033
1034 fn focused(mut self, focused: bool) -> Self {
1035 self.inner = self.inner.with_focused(focused);
1036 self
1037 }
1038
1039 fn focusable(mut self, focusable: bool) -> Self {
1040 self.inner = self.inner.with_focusable(focusable);
1041 self
1042 }
1043
1044 fn maximized(mut self, maximized: bool) -> Self {
1045 self.inner = self.inner.with_maximized(maximized);
1046 self
1047 }
1048
…lines 1049–1357 unchanged (309 lines)
1358 SetSizeConstraints(WindowSizeConstraints),
1359 SetPosition(Position),
1360 SetFullscreen(bool),
1361 #[cfg(target_os = "macos")]
1362 SetSimpleFullscreen(bool),
1363 SetFocus,
1364 SetFocusable(bool),
1365 SetIcon(TaoWindowIcon),
1366 SetSkipTaskbar(bool),
1367 SetCursorGrab(bool),
1368 SetCursorVisible(bool),
1369 SetCursorIcon(CursorIcon),
1370 SetCursorPosition(Position),
…lines 1371–2241 unchanged (871 lines)
2242 send_user_message(
2243 &self.context,
2244 Message::Window(self.window_id, WindowMessage::SetFocus),
2245 )
2246 }
2247
2248 fn set_focusable(&self, focusable: bool) -> Result<()> {
2249 send_user_message(
2250 &self.context,
2251 Message::Window(self.window_id, WindowMessage::SetFocusable(focusable)),
2252 )
2253 }
2254
2255 fn set_icon(&self, icon: Icon) -> Result<()> {
2256 send_user_message(
2257 &self.context,
2258 Message::Window(
2259 self.window_id,
…lines 2260–3389 unchanged (1130 lines)
3390 window.set_simple_fullscreen(enable);
3391 }
3392
3393 WindowMessage::SetFocus => {
3394 window.set_focus();
3395 }
3396 WindowMessage::SetFocusable(focusable) => {
3397 window.set_focusable(focusable);
3398 }
3399 WindowMessage::SetIcon(icon) => {
3400 window.set_window_icon(Some(icon));
3401 }
3402 #[allow(unused_variables)]
3403 WindowMessage::SetSkipTaskbar(skip) => {
3404 #[cfg(any(windows, target_os = "linux"))]
…lines 3405–5173 unchanged (1769 lines)

Before

source_file
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " The [`wry`] Tauri [`Runtime`].\n"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment "\n"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " None of the exposed API of this crate is stable, and it may"...
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " compatibility in the future. The major version only signifi"...
inner_attribute_item (+23 nodes collapsed)
use_declaration
use "use"
scoped_identifier
scoped_identifier
self "self"
:: "::"
identifier "monitor"
:: "::"
identifier "MonitorExt"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "http"
:: "::"
identifier "Request"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "objc2"
:: "::"
identifier "ClassType"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "raw_window_handle"
:: "::"
use_list
{ "{"
identifier "DisplayHandle"
, ","
identifier "HasDisplayHandle"
, ","
identifier "HasWindowHandle"
} "}"
; ";"
use_declaration (+115 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_vendor"
= "="
string_literal
" "\""
string_content "apple"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "objc2"
:: "::"
identifier "rc"
:: "::"
identifier "Retained"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "macos"
:: "::"
use_list
{ "{"
identifier "EventLoopWindowTargetExtMacOS"
, ","
identifier "WindowBuilderExtMacOS"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "linux"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "unix"
:: "::"
use_list
{ "{"
identifier "WindowBuilderExtUnix"
, ","
identifier "WindowExtUnix"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "windows"
:: "::"
use_list
{ "{"
identifier "WindowBuilderExtWindows"
, ","
identifier "WindowExtWindows"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
identifier "webview2_com"
:: "::"
use_list
{ "{"
identifier "ContainsFullScreenElementChangedEventHandler"
, ","
identifier "FocusChangedEventHandler"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "windows"
:: "::"
identifier "Win32"
:: "::"
identifier "Foundation"
:: "::"
identifier "HWND"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtIos"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtMacos"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtWindows"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_vendor"
= "="
string_literal
" "\""
string_content "apple"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
identifier "wry"
:: "::"
use_list
{ "{"
identifier "WebViewBuilderExtDarwin"
, ","
identifier "WebViewExtDarwin"
} "}"
; ";"
use_declaration (+130 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "desktop"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "tauri_utils"
:: "::"
identifier "config"
:: "::"
identifier "PreventOverflowConfig"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "tauri_utils"
:: "::"
identifier "TitleBarStyle"
; ";"
use_declaration (+21 nodes collapsed)
use_declaration
use "use"
scoped_identifier
identifier "url"
:: "::"
identifier "Url"
; ";"
use_declaration (+27 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
identifier "tao"
; ";"
use_declaration (+25 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
identifier "wry"
; ";"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "webview_version"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewExtWindows"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "android"
" "\""
) ")"
] "]"
use_declaration (+23 nodes collapsed)
attribute_item (+44 nodes collapsed)
use_declaration
use "use"
scoped_use_list
identifier "wry"
:: "::"
use_list
{ "{"
identifier "WebViewBuilderExtUnix"
, ","
identifier "WebViewExtUnix"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "ios"
:: "::"
identifier "WindowExtIOS"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration (+26 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "tauri_runtime"
:: "::"
identifier "ActivationPolicy"
; ";"
use_declaration (+105 nodes collapsed)
type_item
visibility_modifier
pub "pub"
type "type"
type_identifier "WebviewId"
= "="
primitive_type "u32"
; ";"
type_item (+23 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "debug_assertions"
) ")"
) ")"
] "]"
mod_item
mod "mod"
identifier "dialog"
; ";"
mod_item
mod "mod"
identifier "monitor"
; ";"
attribute_item (+49 nodes collapsed)
mod_item
mod "mod"
identifier "undecorated_resizing"
; ";"
mod_item
mod "mod"
identifier "util"
; ";"
mod_item
mod "mod"
identifier "webview"
; ";"
mod_item
mod "mod"
identifier "window"
; ";"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "webview"
:: "::"
identifier "Webview"
; ";"
use_declaration
use "use"
use_as_clause
scoped_identifier
identifier "window"
:: "::"
identifier "WindowExt"
as "as"
identifier "_"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+43 nodes collapsed)
type_item (+30 nodes collapsed)
line_comment
// "//"
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+27 nodes collapsed)
impl_item (+121 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "macro_export"
] "]"
macro_definition (+67 nodes collapsed)
macro_definition (+65 nodes collapsed)
macro_definition (+61 nodes collapsed)
macro_definition (+80 nodes collapsed)
function_item (+176 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+135 nodes collapsed)
impl_item (+251 nodes collapsed)
impl_item (+677 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+25 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
impl_item (+68 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
enum_item (+30 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+24 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "WindowsStore"
declaration_list
{ "{"
} "}"
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Sync"
for "for"
type_identifier "WindowsStore"
declaration_list
{ "{"
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+76 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+132 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "DeviceEventFilterWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoDeviceEventFilter"
) ")"
; ";"
impl_item (+86 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "RectWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "wry"
:: "::"
type_identifier "Rect"
) ")"
; ";"
impl_item (+69 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Wrapper around a [`tao::window::Icon`] that can be created "...
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "TaoIcon"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoWindowIcon"
) ")"
; ";"
impl_item (+130 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "WindowEventWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "WindowEvent"
> ">"
) ")"
; ";"
impl_item (+671 nodes collapsed)
function_item (+59 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+69 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "MonitorHandleWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "MonitorHandle"
) ")"
; ";"
impl_item (+132 nodes collapsed)
struct_item (+22 nodes collapsed)
impl_item (+75 nodes collapsed)
impl_item (+74 nodes collapsed)
struct_item
struct "struct"
type_identifier "LogicalPositionWrapper"
type_parameters
< "<"
type_parameter
type_identifier "T"
> ">"
ordered_field_declaration_list
( "("
generic_type
type_identifier "TaoLogicalPosition"
type_arguments
< "<"
type_identifier "T"
> ">"
) ")"
; ";"
impl_item (+74 nodes collapsed)
struct_item (+22 nodes collapsed)
impl_item (+75 nodes collapsed)
impl_item (+74 nodes collapsed)
struct_item
struct "struct"
type_identifier "LogicalSizeWrapper"
type_parameters
< "<"
type_parameter
type_identifier "T"
> ">"
ordered_field_declaration_list
( "("
generic_type
type_identifier "TaoLogicalSize"
type_arguments
< "<"
type_identifier "T"
> ">"
) ")"
; ";"
impl_item (+74 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "SizeWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoSize"
) ")"
; ";"
impl_item (+109 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "PositionWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoPosition"
) ")"
; ";"
impl_item (+109 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "UserAttentionTypeWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoUserAttentionType"
) ")"
; ";"
impl_item (+69 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "CursorIconWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoCursorIcon"
) ")"
; ";"
impl_item (+376 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "ProgressStateWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoProgressState"
) ")"
; ";"
impl_item (+105 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "ProgressBarStateWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoProgressBarState"
) ")"
; ";"
impl_item (+86 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+53 nodes collapsed)
impl_item (+172 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
} "}"
impl_item
impl "impl"
type_identifier "WindowBuilderBase"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
} "}"
impl_item
impl "impl"
type_identifier "WindowBuilder"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
function_item (+139 nodes collapsed)
function_item
fn "fn"
identifier "with_config"
parameters
( "("
parameter
identifier "config"
: ":"
reference_type
& "&"
type_identifier "WindowConfig"
) ")"
-> "->"
type_identifier "Self"
block
{ "{"
let_declaration
let "let"
mutable_specifier "mut"
identifier "window"
= "="
call_expression
scoped_identifier
identifier "WindowBuilderWrapper"
:: "::"
identifier "new"
arguments
( "("
) ")"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
expression_statement (+123 nodes collapsed)
attribute_item (+30 nodes collapsed)
expression_statement (+21 nodes collapsed)
attribute_item (+32 nodes collapsed)
expression_statement (+22 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "linux"
" "\""
) ")"
] "]"
expression_statement (+27 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "desktop"
) ")"
] "]"
expression_statement
block
{ "{"
expression_statement
assignment_expression
identifier "window"
= "="
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
identifier "window"
. "."
field_identifier "title"
arguments
( "("
call_expression
field_expression
field_expression
identifier "config"
. "."
field_identifier "title"
. "."
field_identifier "to_string"
arguments
( "("
) ")"
) ")"
. "."
field_identifier "inner_size"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "width"
, ","
field_expression
identifier "config"
. "."
field_identifier "height"
) ")"
. "."
field_identifier "focused"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "focus"
) ")"
. "."
field_identifier "visible"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "visible"
) ")"
. "."
field_identifier "resizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "resizable"
) ")"
. "."
field_identifier "fullscreen"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "fullscreen"
) ")"
. "."
field_identifier "decorations"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "decorations"
) ")"
. "."
field_identifier "maximized"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "maximized"
) ")"
. "."
field_identifier "always_on_bottom"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "always_on_bottom"
) ")"
. "."
field_identifier "always_on_top"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "always_on_top"
) ")"
. "."
field_identifier "visible_on_all_workspaces"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "visible_on_all_workspaces"
) ")"
. "."
field_identifier "content_protected"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "content_protected"
) ")"
. "."
field_identifier "skip_taskbar"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "skip_taskbar"
) ")"
. "."
field_identifier "theme"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "theme"
) ")"
. "."
field_identifier "closable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "closable"
) ")"
. "."
field_identifier "maximizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "maximizable"
) ")"
. "."
field_identifier "minimizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "minimizable"
) ")"
. "."
field_identifier "shadow"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "shadow"
) ")"
; ";"
let_declaration
let "let"
mutable_specifier "mut"
identifier "constraints"
= "="
call_expression
scoped_identifier
identifier "WindowSizeConstraints"
:: "::"
identifier "default"
arguments
( "("
) ")"
; ";"
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+32 nodes collapsed)
expression_statement
assignment_expression
identifier "window"
= "="
call_expression
field_expression
identifier "window"
. "."
field_identifier "inner_size_constraints"
arguments
( "("
identifier "constraints"
) ")"
; ";"
expression_statement (+51 nodes collapsed)
expression_statement (+23 nodes collapsed)
expression_statement (+34 nodes collapsed)
expression_statement (+102 nodes collapsed)
} "}"
identifier "window"
} "}"
function_item (+25 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+77 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Prevent the window from overflowing the working area (e.g. "...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " ## Platform-specific\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " - **iOS / Android:** Unsupported.\n"
function_item (+46 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Prevent the window from overflowing the working area (e.g. "...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " on creation with a margin\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " ## Platform-specific\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " - **iOS / Android:** Unsupported.\n"
function_item (+34 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+60 nodes collapsed)
function_item (+76 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
attribute_item (+30 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+103 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+46 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+46 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+49 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+58 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+40 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+253 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+60 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+40 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+63 nodes collapsed)
function_item (+68 nodes collapsed)
function_item (+47 nodes collapsed)
attribute_item (+21 nodes collapsed)
function_item (+40 nodes collapsed)
attribute_item (+33 nodes collapsed)
function_item
fn "fn"
identifier "skip_taskbar"
parameters
( "("
self_parameter
self "self"
, ","
parameter
identifier "_skip"
: ":"
primitive_type "bool"
) ")"
-> "->"
type_identifier "Self"
block
{ "{"
self "self"
} "}"
function_item (+102 nodes collapsed)
function_item (+31 nodes collapsed)
function_item (+68 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+53 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "windows"
) ")"
) ")"
] "]"
function_item (+32 nodes collapsed)
} "}"
attribute_item (+47 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "GtkWindow"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "gtk"
:: "::"
type_identifier "ApplicationWindow"
) ")"
; ";"
attribute_item (+47 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "GtkWindow"
declaration_list
{ "{"
} "}"
attribute_item (+47 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "GtkBox"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "gtk"
:: "::"
type_identifier "Box"
) ")"
; ";"
attribute_item (+47 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "GtkBox"
declaration_list
{ "{"
} "}"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "SendRawWindowHandle"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "raw_window_handle"
:: "::"
type_identifier "RawWindowHandle"
) ")"
; ";"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "SendRawWindowHandle"
declaration_list
{ "{"
} "}"
enum_item (+174 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "WindowMessage"
enum_variant_list
{ "{"
enum_variant (+25 nodes collapsed)
, ","
line_comment
// "//"
enum_variant
identifier "ScaleFactor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "f64"
> ">"
) ")"
, ","
enum_variant (+21 nodes collapsed)
, ","
enum_variant (+21 nodes collapsed)
, ","
enum_variant
identifier "InnerSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "PhysicalSize"
type_arguments
< "<"
primitive_type "u32"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "OuterSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "PhysicalSize"
type_arguments
< "<"
primitive_type "u32"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "IsFullscreen"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMinimized"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMaximized"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsFocused"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsDecorated"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsResizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMaximizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMinimizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsClosable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsVisible"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "Title"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "CurrentMonitor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "PrimaryMonitor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
enum_variant (+23 nodes collapsed)
, ","
enum_variant
identifier "AvailableMonitors"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Vec"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
attribute_item (+47 nodes collapsed)
enum_variant
identifier "GtkWindow"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "GtkWindow"
> ">"
) ")"
, ","
attribute_item (+47 nodes collapsed)
enum_variant
identifier "GtkBox"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "GtkBox"
> ">"
) ")"
, ","
enum_variant (+27 nodes collapsed)
, ","
enum_variant
identifier "Theme"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "Theme"
> ">"
) ")"
, ","
enum_variant
identifier "IsEnabled"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsAlwaysOnTop"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
line_comment
// "//"
enum_variant
identifier "Center"
, ","
enum_variant
identifier "RequestUserAttention"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "UserAttentionTypeWrapper"
> ">"
) ")"
, ","
enum_variant
identifier "SetEnabled"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetResizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetMaximizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetMinimizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetClosable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetTitle"
ordered_field_declaration_list
( "("
type_identifier "String"
) ")"
, ","
enum_variant
identifier "Maximize"
, ","
enum_variant
identifier "Unmaximize"
, ","
enum_variant
identifier "Minimize"
, ","
enum_variant
identifier "Unminimize"
, ","
enum_variant
identifier "Show"
, ","
enum_variant
identifier "Hide"
, ","
enum_variant
identifier "Close"
, ","
enum_variant
identifier "Destroy"
, ","
enum_variant
identifier "SetDecorations"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetShadow"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetAlwaysOnBottom"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetAlwaysOnTop"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetVisibleOnAllWorkspaces"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetContentProtected"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetSize"
ordered_field_declaration_list
( "("
type_identifier "Size"
) ")"
, ","
enum_variant
identifier "SetMinSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Size"
> ">"
) ")"
, ","
enum_variant
identifier "SetMaxSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Size"
> ">"
) ")"
, ","
enum_variant
identifier "SetSizeConstraints"
ordered_field_declaration_list
( "("
type_identifier "WindowSizeConstraints"
) ")"
, ","
enum_variant
identifier "SetPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetFullscreen"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
enum_variant
identifier "SetSimpleFullscreen"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetFocus"
, ","
enum_variant
identifier "SetIcon"
ordered_field_declaration_list
( "("
type_identifier "TaoWindowIcon"
) ")"
, ","
enum_variant
identifier "SetSkipTaskbar"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorGrab"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorVisible"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorIcon"
ordered_field_declaration_list
( "("
type_identifier "CursorIcon"
) ")"
, ","
enum_variant
identifier "SetCursorPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetIgnoreCursorEvents"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetBadgeCount"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
primitive_type "i64"
> ">"
, ","
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "SetBadgeLabel"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "SetOverlayIcon"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "TaoIcon"
> ">"
) ")"
, ","
enum_variant
identifier "SetProgressBar"
ordered_field_declaration_list
( "("
type_identifier "ProgressBarState"
) ")"
, ","
enum_variant
identifier "SetTitleBarStyle"
ordered_field_declaration_list
( "("
scoped_type_identifier
identifier "tauri_utils"
:: "::"
type_identifier "TitleBarStyle"
) ")"
, ","
enum_variant
identifier "SetTrafficLightPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetTheme"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Theme"
> ">"
) ")"
, ","
enum_variant
identifier "SetBackgroundColor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Color"
> ">"
) ")"
, ","
enum_variant
identifier "DragWindow"
, ","
enum_variant
identifier "ResizeDragWindow"
ordered_field_declaration_list
( "("
scoped_type_identifier
identifier "tauri_runtime"
:: "::"
type_identifier "ResizeDirection"
) ")"
, ","
enum_variant
identifier "RequestRedraw"
, ","
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
enum_item (+22 nodes collapsed)
impl_item (+92 nodes collapsed)
enum_item (+533 nodes collapsed)
enum_item (+49 nodes collapsed)
type_item (+47 nodes collapsed)
type_item (+34 nodes collapsed)
struct_item (+30 nodes collapsed)
enum_item (+202 nodes collapsed)
impl_item (+81 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The Tauri [`WebviewDispatch`] for [`Wry`].\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+46 nodes collapsed)
impl_item (+2701 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The Tauri [`WindowDispatch`] for [`Wry`].\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+31 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
function_item (+63 nodes collapsed)
impl_item
impl "impl"
type_parameters
< "<"
type_parameter
type_identifier "T"
trait_bounds
: ":"
type_identifier "UserEvent"
> ">"
generic_type
type_identifier "WindowDispatch"
type_arguments
< "<"
type_identifier "T"
> ">"
for "for"
generic_type
type_identifier "WryWindowDispatcher"
type_arguments
< "<"
type_identifier "T"
> ">"
declaration_list
{ "{"
type_item
type "type"
type_identifier "Runtime"
= "="
generic_type
type_identifier "Wry"
type_arguments
< "<"
type_identifier "T"
> ">"
; ";"
type_item
type "type"
type_identifier "WindowBuilder"
= "="
type_identifier "WindowBuilderWrapper"
; ";"
function_item (+73 nodes collapsed)
function_item (+109 nodes collapsed)
line_comment
// "//"
function_item (+30 nodes collapsed)
function_item (+37 nodes collapsed)
function_item (+37 nodes collapsed)
function_item (+35 nodes collapsed)
function_item (+35 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the window's current decoration state.\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the window's current resizable state.\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's maximize button state\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's minimize button state\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's close button state\n"
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+67 nodes collapsed)
function_item (+67 nodes collapsed)
function_item (+156 nodes collapsed)
function_item (+82 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+49 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+49 nodes collapsed)
function_item (+111 nodes collapsed)
line_comment
// "//"
function_item (+51 nodes collapsed)
function_item (+78 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
function_item (+89 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
function_item (+63 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+81 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+70 nodes collapsed)
function_item (+70 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+61 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+75 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+85 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+79 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+126 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+66 nodes collapsed)
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+70 nodes collapsed)
impl_item (+49 nodes collapsed)
impl_item (+153 nodes collapsed)
struct_item (+153 nodes collapsed)
impl_item (+30 nodes collapsed)
impl_item (+101 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+28 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+88 nodes collapsed)
trait_item (+52 nodes collapsed)
trait_item (+110 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " A Tauri [`Runtime`] wrapper around wry.\n"
struct_item (+41 nodes collapsed)
impl_item (+165 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " A handle to the Wry runtime.\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+26 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+430 nodes collapsed)
impl_item (+1540 nodes collapsed)
impl_item (+514 nodes collapsed)
impl_item (+2457 nodes collapsed)
function_item (+466 nodes collapsed)
struct_item (+95 nodes collapsed)
struct_item (+21 nodes collapsed)
function_item
fn "fn"
identifier "handle_user_message"
type_parameters
< "<"
type_parameter
type_identifier "T"
trait_bounds
: ":"
type_identifier "UserEvent"
> ">"
parameters (+35 nodes collapsed)
block
{ "{"
let_declaration
let "let"
struct_pattern
type_identifier "UserMessageContext"
{ "{"
field_pattern
shorthand_field_identifier "window_id_map"
, ","
field_pattern
shorthand_field_identifier "windows"
, ","
} "}"
= "="
identifier "context"
; ";"
expression_statement
match_expression
match "match"
identifier "message"
match_block
{ "{"
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "Task"
( "("
identifier "task"
) ")"
=> "=>"
call_expression
identifier "task"
arguments
( "("
) ")"
, ","
match_arm (+43 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+22 nodes collapsed)
match_arm (+255 nodes collapsed)
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "Window"
( "("
identifier "id"
, ","
identifier "window_message"
) ")"
=> "=>"
block
{ "{"
let_declaration (+96 nodes collapsed)
expression_statement
if_expression
if "if"
let_condition (+22 nodes collapsed)
block
{ "{"
expression_statement
match_expression
match "match"
identifier "window_message"
match_block
{ "{"
match_arm (+43 nodes collapsed)
line_comment
// "//"
match_arm (+35 nodes collapsed)
match_arm (+77 nodes collapsed)
match_arm (+77 nodes collapsed)
match_arm (+53 nodes collapsed)
match_arm (+47 nodes collapsed)
match_arm (+42 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+47 nodes collapsed)
match_arm (+44 nodes collapsed)
match_arm (+94 nodes collapsed)
match_arm (+101 nodes collapsed)
match_arm (+61 nodes collapsed)
match_arm (+46 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
line_comment
// "//"
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Center"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "center"
arguments
( "("
) ")"
, ","
match_arm (+41 nodes collapsed)
match_arm (+107 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Maximize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_maximized"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Unmaximize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_maximized"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Minimize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_minimized"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Unminimize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_minimized"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm (+21 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Show"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_visible"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Hide"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_visible"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Close"
=> "=>"
block
{ "{"
macro_invocation
identifier "panic"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "cannot handle `WindowMessage::Close` on the main thread"
" "\""
) ")"
} "}"
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Destroy"
=> "=>"
block
{ "{"
macro_invocation
identifier "panic"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "cannot handle `WindowMessage::Destroy` on the main thread"
" "\""
) ")"
} "}"
match_arm (+103 nodes collapsed)
match_arm (+85 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+49 nodes collapsed)
match_arm (+49 nodes collapsed)
match_arm (+67 nodes collapsed)
match_arm (+34 nodes collapsed)
match_arm (+57 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "SetFocus"
=> "=>"
block
{ "{"
expression_statement
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_focus"
arguments
( "("
) ")"
; ";"
} "}"
match_arm (+30 nodes collapsed)
match_arm (+59 nodes collapsed)
match_arm (+28 nodes collapsed)
match_arm (+25 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+39 nodes collapsed)
match_arm (+28 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+201 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "RequestRedraw"
=> "=>"
block
{ "{"
expression_statement
call_expression
field_expression
identifier "window"
. "."
field_identifier "request_redraw"
arguments
( "("
) ")"
; ";"
} "}"
match_arm (+189 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm (+58 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+208 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm (+30 nodes collapsed)
match_arm (+34 nodes collapsed)
} "}"
} "}"
} "}"
match_arm (+3855 nodes collapsed)
match_arm (+250 nodes collapsed)
match_arm (+111 nodes collapsed)
match_arm (+468 nodes collapsed)
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "UserEvent"
( "("
_ "_"
) ")"
=> "=>"
unit_expression
( "("
) ")"
, ","
match_arm (+145 nodes collapsed)
} "}"
} "}"
function_item (+2174 nodes collapsed)
function_item (+307 nodes collapsed)
function_item (+90 nodes collapsed)
function_item (+215 nodes collapsed)
function_item (+1956 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " the kind of the webview\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "PartialEq"
, ","
identifier "Eq"
, ","
identifier "PartialOrd"
, ","
identifier "Ord"
, ","
identifier "Clone"
, ","
identifier "Copy"
) ")"
] "]"
enum_item
enum "enum"
type_identifier "WebviewKind"
enum_variant_list
{ "{"
line_comment
// "//"
enum_variant
identifier "WindowContent"
, ","
line_comment
// "//"
enum_variant
identifier "WindowChild"
, ","
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+26 nodes collapsed)
function_item (+4962 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Create a wry ipc handler from a tauri ipc handler.\n"
function_item (+183 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+199 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "unused_variables"
) ")"
] "]"
function_item (+46 nodes collapsed)
function_item (+80 nodes collapsed)

After

source_file
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " The [`wry`] Tauri [`Runtime`].\n"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment "\n"
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " None of the exposed API of this crate is stable, and it may"...
line_comment
// "//"
inner_doc_comment_marker
! "!"
doc_comment " compatibility in the future. The major version only signifi"...
inner_attribute_item (+23 nodes collapsed)
use_declaration
use "use"
scoped_identifier
scoped_identifier
self "self"
:: "::"
identifier "monitor"
:: "::"
identifier "MonitorExt"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "http"
:: "::"
identifier "Request"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "objc2"
:: "::"
identifier "ClassType"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "raw_window_handle"
:: "::"
use_list
{ "{"
identifier "DisplayHandle"
, ","
identifier "HasDisplayHandle"
, ","
identifier "HasWindowHandle"
} "}"
; ";"
use_declaration (+115 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_vendor"
= "="
string_literal
" "\""
string_content "apple"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "objc2"
:: "::"
identifier "rc"
:: "::"
identifier "Retained"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "macos"
:: "::"
use_list
{ "{"
identifier "EventLoopWindowTargetExtMacOS"
, ","
identifier "WindowBuilderExtMacOS"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "linux"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "unix"
:: "::"
use_list
{ "{"
identifier "WindowBuilderExtUnix"
, ","
identifier "WindowExtUnix"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "windows"
:: "::"
use_list
{ "{"
identifier "WindowBuilderExtWindows"
, ","
identifier "WindowExtWindows"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
identifier "webview2_com"
:: "::"
use_list
{ "{"
identifier "ContainsFullScreenElementChangedEventHandler"
, ","
identifier "FocusChangedEventHandler"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "windows"
:: "::"
identifier "Win32"
:: "::"
identifier "Foundation"
:: "::"
identifier "HWND"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtIos"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtMacos"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewBuilderExtWindows"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_vendor"
= "="
string_literal
" "\""
string_content "apple"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_use_list
identifier "wry"
:: "::"
use_list
{ "{"
identifier "WebViewBuilderExtDarwin"
, ","
identifier "WebViewExtDarwin"
} "}"
; ";"
use_declaration (+130 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "desktop"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
scoped_identifier
identifier "tauri_utils"
:: "::"
identifier "config"
:: "::"
identifier "PreventOverflowConfig"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "tauri_utils"
:: "::"
identifier "TitleBarStyle"
; ";"
use_declaration (+21 nodes collapsed)
use_declaration
use "use"
scoped_identifier
identifier "url"
:: "::"
identifier "Url"
; ";"
use_declaration (+27 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
identifier "tao"
; ";"
use_declaration (+25 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
identifier "wry"
; ";"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "webview_version"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "wry"
:: "::"
identifier "WebViewExtWindows"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "android"
" "\""
) ")"
] "]"
use_declaration (+23 nodes collapsed)
attribute_item (+44 nodes collapsed)
use_declaration
use "use"
scoped_use_list
identifier "wry"
:: "::"
use_list
{ "{"
identifier "WebViewBuilderExtUnix"
, ","
identifier "WebViewExtUnix"
} "}"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "tao"
:: "::"
identifier "platform"
:: "::"
identifier "ios"
:: "::"
identifier "WindowExtIOS"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration (+26 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
use_declaration
use "use"
scoped_identifier
identifier "tauri_runtime"
:: "::"
identifier "ActivationPolicy"
; ";"
use_declaration (+105 nodes collapsed)
type_item
visibility_modifier
pub "pub"
type "type"
type_identifier "WebviewId"
= "="
primitive_type "u32"
; ";"
type_item (+23 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "debug_assertions"
) ")"
) ")"
] "]"
mod_item
mod "mod"
identifier "dialog"
; ";"
mod_item
mod "mod"
identifier "monitor"
; ";"
attribute_item (+49 nodes collapsed)
mod_item
mod "mod"
identifier "undecorated_resizing"
; ";"
mod_item
mod "mod"
identifier "util"
; ";"
mod_item
mod "mod"
identifier "webview"
; ";"
mod_item
mod "mod"
identifier "window"
; ";"
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "webview"
:: "::"
identifier "Webview"
; ";"
use_declaration
use "use"
use_as_clause
scoped_identifier
identifier "window"
:: "::"
identifier "WindowExt"
as "as"
identifier "_"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+43 nodes collapsed)
type_item (+30 nodes collapsed)
line_comment
// "//"
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
type_item (+25 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+27 nodes collapsed)
impl_item (+121 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "macro_export"
] "]"
macro_definition (+67 nodes collapsed)
macro_definition (+65 nodes collapsed)
macro_definition (+61 nodes collapsed)
macro_definition (+80 nodes collapsed)
function_item (+176 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+135 nodes collapsed)
impl_item (+251 nodes collapsed)
impl_item (+677 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+25 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
impl_item (+68 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "tracing"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
enum_item (+30 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+24 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "WindowsStore"
declaration_list
{ "{"
} "}"
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Sync"
for "for"
type_identifier "WindowsStore"
declaration_list
{ "{"
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+76 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+132 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "DeviceEventFilterWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoDeviceEventFilter"
) ")"
; ";"
impl_item (+86 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "RectWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "wry"
:: "::"
type_identifier "Rect"
) ")"
; ";"
impl_item (+69 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Wrapper around a [`tao::window::Icon`] that can be created "...
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "TaoIcon"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoWindowIcon"
) ")"
; ";"
impl_item (+130 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "WindowEventWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "WindowEvent"
> ">"
) ")"
; ";"
impl_item (+671 nodes collapsed)
function_item (+59 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+69 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "MonitorHandleWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "MonitorHandle"
) ")"
; ";"
impl_item (+132 nodes collapsed)
struct_item (+22 nodes collapsed)
impl_item (+75 nodes collapsed)
impl_item (+74 nodes collapsed)
struct_item
struct "struct"
type_identifier "LogicalPositionWrapper"
type_parameters
< "<"
type_parameter
type_identifier "T"
> ">"
ordered_field_declaration_list
( "("
generic_type
type_identifier "TaoLogicalPosition"
type_arguments
< "<"
type_identifier "T"
> ">"
) ")"
; ";"
impl_item (+74 nodes collapsed)
struct_item (+22 nodes collapsed)
impl_item (+75 nodes collapsed)
impl_item (+74 nodes collapsed)
struct_item
struct "struct"
type_identifier "LogicalSizeWrapper"
type_parameters
< "<"
type_parameter
type_identifier "T"
> ">"
ordered_field_declaration_list
( "("
generic_type
type_identifier "TaoLogicalSize"
type_arguments
< "<"
type_identifier "T"
> ">"
) ")"
; ";"
impl_item (+74 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "SizeWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoSize"
) ")"
; ";"
impl_item (+109 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "PositionWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoPosition"
) ")"
; ";"
impl_item (+109 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "UserAttentionTypeWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoUserAttentionType"
) ")"
; ";"
impl_item (+69 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "CursorIconWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoCursorIcon"
) ")"
; ";"
impl_item (+376 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "ProgressStateWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoProgressState"
) ")"
; ";"
impl_item (+105 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "ProgressBarStateWrapper"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
type_identifier "TaoProgressBarState"
) ")"
; ";"
impl_item (+86 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Default"
) ")"
] "]"
struct_item (+53 nodes collapsed)
impl_item (+172 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
} "}"
impl_item
impl "impl"
type_identifier "WindowBuilderBase"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
} "}"
impl_item
impl "impl"
type_identifier "WindowBuilder"
for "for"
type_identifier "WindowBuilderWrapper"
declaration_list
{ "{"
function_item (+139 nodes collapsed)
function_item
fn "fn"
identifier "with_config"
parameters
( "("
parameter
identifier "config"
: ":"
reference_type
& "&"
type_identifier "WindowConfig"
) ")"
-> "->"
type_identifier "Self"
block
{ "{"
let_declaration
let "let"
mutable_specifier "mut"
identifier "window"
= "="
call_expression
scoped_identifier
identifier "WindowBuilderWrapper"
:: "::"
identifier "new"
arguments
( "("
) ")"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
expression_statement (+123 nodes collapsed)
attribute_item (+30 nodes collapsed)
expression_statement (+21 nodes collapsed)
attribute_item (+32 nodes collapsed)
expression_statement (+22 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "linux"
" "\""
) ")"
] "]"
expression_statement (+27 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "desktop"
) ")"
] "]"
expression_statement
block
{ "{"
expression_statement
assignment_expression
identifier "window"
= "="
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
call_expression any 18:19
field_expression any 18:19
identifier "window"
. "."
field_identifier "title"
arguments
( "("
call_expression
field_expression
field_expression
identifier "config"
. "."
field_identifier "title"
. "."
field_identifier "to_string"
arguments
( "("
) ")"
) ")"
. "."
field_identifier "inner_size"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "width"
, ","
field_expression
identifier "config"
. "."
field_identifier "height"
) ")"
. "."
field_identifier "focused"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "focus"
) ")"
. "."
field_identifier "focusable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "focusable"
) ")"
. "."
field_identifier "visible"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "visible"
) ")"
. "."
field_identifier "resizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "resizable"
) ")"
. "."
field_identifier "fullscreen"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "fullscreen"
) ")"
. "."
field_identifier "decorations"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "decorations"
) ")"
. "."
field_identifier "maximized"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "maximized"
) ")"
. "."
field_identifier "always_on_bottom"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "always_on_bottom"
) ")"
. "."
field_identifier "always_on_top"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "always_on_top"
) ")"
. "."
field_identifier "visible_on_all_workspaces"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "visible_on_all_workspaces"
) ")"
. "."
field_identifier "content_protected"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "content_protected"
) ")"
. "."
field_identifier "skip_taskbar"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "skip_taskbar"
) ")"
. "."
field_identifier "theme"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "theme"
) ")"
. "."
field_identifier "closable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "closable"
) ")"
. "."
field_identifier "maximizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "maximizable"
) ")"
. "."
field_identifier "minimizable"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "minimizable"
) ")"
. "."
field_identifier "shadow"
arguments
( "("
field_expression
identifier "config"
. "."
field_identifier "shadow"
) ")"
; ";"
let_declaration
let "let"
mutable_specifier "mut"
identifier "constraints"
= "="
call_expression
scoped_identifier
identifier "WindowSizeConstraints"
:: "::"
identifier "default"
arguments
( "("
) ")"
; ";"
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+53 nodes collapsed)
expression_statement (+32 nodes collapsed)
expression_statement
assignment_expression
identifier "window"
= "="
call_expression
field_expression
identifier "window"
. "."
field_identifier "inner_size_constraints"
arguments
( "("
identifier "constraints"
) ")"
; ";"
expression_statement (+51 nodes collapsed)
expression_statement (+23 nodes collapsed)
expression_statement (+34 nodes collapsed)
expression_statement (+102 nodes collapsed)
} "}"
identifier "window"
} "}"
function_item (+25 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+55 nodes collapsed)
function_item (+77 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Prevent the window from overflowing the working area (e.g. "...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " ## Platform-specific\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " - **iOS / Android:** Unsupported.\n"
function_item (+46 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Prevent the window from overflowing the working area (e.g. "...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " on creation with a margin\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " ## Platform-specific\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " - **iOS / Android:** Unsupported.\n"
function_item (+34 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+60 nodes collapsed)
function_item (+76 nodes collapsed)
function_item (+40 nodes collapsed)
function_item
fn "fn"
identifier "focusable"
parameters
( "("
self_parameter
mutable_specifier "mut"
self "self"
, ","
parameter
identifier "focusable"
: ":"
primitive_type "bool"
) ")"
-> "->"
type_identifier "Self"
block
{ "{"
expression_statement
assignment_expression
field_expression
self "self"
. "."
field_identifier "inner"
= "="
call_expression
field_expression
field_expression
self "self"
. "."
field_identifier "inner"
. "."
field_identifier "with_focusable"
arguments
( "("
identifier "focusable"
) ")"
; ";"
self "self"
} "}"
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
attribute_item (+30 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+40 nodes collapsed)
function_item (+103 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+46 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+46 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+49 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+58 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+40 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+253 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+60 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+40 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+63 nodes collapsed)
function_item (+68 nodes collapsed)
function_item (+47 nodes collapsed)
attribute_item (+21 nodes collapsed)
function_item (+40 nodes collapsed)
attribute_item (+33 nodes collapsed)
function_item
fn "fn"
identifier "skip_taskbar"
parameters
( "("
self_parameter
self "self"
, ","
parameter
identifier "_skip"
: ":"
primitive_type "bool"
) ")"
-> "->"
type_identifier "Self"
block
{ "{"
self "self"
} "}"
function_item (+102 nodes collapsed)
function_item (+31 nodes collapsed)
function_item (+68 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "windows"
) ")"
] "]"
function_item (+53 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "windows"
) ")"
) ")"
] "]"
function_item (+32 nodes collapsed)
} "}"
attribute_item (+47 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "GtkWindow"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "gtk"
:: "::"
type_identifier "ApplicationWindow"
) ")"
; ";"
attribute_item (+47 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "GtkWindow"
declaration_list
{ "{"
} "}"
attribute_item (+47 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "GtkBox"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "gtk"
:: "::"
type_identifier "Box"
) ")"
; ";"
attribute_item (+47 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "GtkBox"
declaration_list
{ "{"
} "}"
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "SendRawWindowHandle"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
scoped_type_identifier
identifier "raw_window_handle"
:: "::"
type_identifier "RawWindowHandle"
) ")"
; ";"
impl_item
unsafe "unsafe"
impl "impl"
type_identifier "Send"
for "for"
type_identifier "SendRawWindowHandle"
declaration_list
{ "{"
} "}"
enum_item (+174 nodes collapsed)
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "WindowMessage"
enum_variant_list
{ "{"
enum_variant (+25 nodes collapsed)
, ","
line_comment
// "//"
enum_variant
identifier "ScaleFactor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "f64"
> ">"
) ")"
, ","
enum_variant (+21 nodes collapsed)
, ","
enum_variant (+21 nodes collapsed)
, ","
enum_variant
identifier "InnerSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "PhysicalSize"
type_arguments
< "<"
primitive_type "u32"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "OuterSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "PhysicalSize"
type_arguments
< "<"
primitive_type "u32"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "IsFullscreen"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMinimized"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMaximized"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsFocused"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsDecorated"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsResizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMaximizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsMinimizable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsClosable"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsVisible"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "Title"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "CurrentMonitor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
enum_variant
identifier "PrimaryMonitor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
enum_variant (+23 nodes collapsed)
, ","
enum_variant
identifier "AvailableMonitors"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
generic_type
type_identifier "Vec"
type_arguments
< "<"
type_identifier "MonitorHandle"
> ">"
> ">"
) ")"
, ","
attribute_item (+47 nodes collapsed)
enum_variant
identifier "GtkWindow"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "GtkWindow"
> ">"
) ")"
, ","
attribute_item (+47 nodes collapsed)
enum_variant
identifier "GtkBox"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "GtkBox"
> ">"
) ")"
, ","
enum_variant (+27 nodes collapsed)
, ","
enum_variant
identifier "Theme"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
type_identifier "Theme"
> ">"
) ")"
, ","
enum_variant
identifier "IsEnabled"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
enum_variant
identifier "IsAlwaysOnTop"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Sender"
type_arguments
< "<"
primitive_type "bool"
> ">"
) ")"
, ","
line_comment
// "//"
enum_variant
identifier "Center"
, ","
enum_variant
identifier "RequestUserAttention"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "UserAttentionTypeWrapper"
> ">"
) ")"
, ","
enum_variant
identifier "SetEnabled"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetResizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetMaximizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetMinimizable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetClosable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetTitle"
ordered_field_declaration_list
( "("
type_identifier "String"
) ")"
, ","
enum_variant
identifier "Maximize"
, ","
enum_variant
identifier "Unmaximize"
, ","
enum_variant
identifier "Minimize"
, ","
enum_variant
identifier "Unminimize"
, ","
enum_variant
identifier "Show"
, ","
enum_variant
identifier "Hide"
, ","
enum_variant
identifier "Close"
, ","
enum_variant
identifier "Destroy"
, ","
enum_variant
identifier "SetDecorations"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetShadow"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetAlwaysOnBottom"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetAlwaysOnTop"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetVisibleOnAllWorkspaces"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetContentProtected"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetSize"
ordered_field_declaration_list
( "("
type_identifier "Size"
) ")"
, ","
enum_variant
identifier "SetMinSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Size"
> ">"
) ")"
, ","
enum_variant
identifier "SetMaxSize"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Size"
> ">"
) ")"
, ","
enum_variant
identifier "SetSizeConstraints"
ordered_field_declaration_list
( "("
type_identifier "WindowSizeConstraints"
) ")"
, ","
enum_variant
identifier "SetPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetFullscreen"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
enum_variant
identifier "SetSimpleFullscreen"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetFocus"
, ","
enum_variant
identifier "SetFocusable"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetIcon"
ordered_field_declaration_list
( "("
type_identifier "TaoWindowIcon"
) ")"
, ","
enum_variant
identifier "SetSkipTaskbar"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorGrab"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorVisible"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetCursorIcon"
ordered_field_declaration_list
( "("
type_identifier "CursorIcon"
) ")"
, ","
enum_variant
identifier "SetCursorPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetIgnoreCursorEvents"
ordered_field_declaration_list
( "("
primitive_type "bool"
) ")"
, ","
enum_variant
identifier "SetBadgeCount"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
primitive_type "i64"
> ">"
, ","
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "SetBadgeLabel"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "String"
> ">"
) ")"
, ","
enum_variant
identifier "SetOverlayIcon"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "TaoIcon"
> ">"
) ")"
, ","
enum_variant
identifier "SetProgressBar"
ordered_field_declaration_list
( "("
type_identifier "ProgressBarState"
) ")"
, ","
enum_variant
identifier "SetTitleBarStyle"
ordered_field_declaration_list
( "("
scoped_type_identifier
identifier "tauri_utils"
:: "::"
type_identifier "TitleBarStyle"
) ")"
, ","
enum_variant
identifier "SetTrafficLightPosition"
ordered_field_declaration_list
( "("
type_identifier "Position"
) ")"
, ","
enum_variant
identifier "SetTheme"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Theme"
> ">"
) ")"
, ","
enum_variant
identifier "SetBackgroundColor"
ordered_field_declaration_list
( "("
generic_type
type_identifier "Option"
type_arguments
< "<"
type_identifier "Color"
> ">"
) ")"
, ","
enum_variant
identifier "DragWindow"
, ","
enum_variant
identifier "ResizeDragWindow"
ordered_field_declaration_list
( "("
scoped_type_identifier
identifier "tauri_runtime"
:: "::"
type_identifier "ResizeDirection"
) ")"
, ","
enum_variant
identifier "RequestRedraw"
, ","
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
enum_item (+22 nodes collapsed)
impl_item (+92 nodes collapsed)
enum_item (+533 nodes collapsed)
enum_item (+49 nodes collapsed)
type_item (+47 nodes collapsed)
type_item (+34 nodes collapsed)
struct_item (+30 nodes collapsed)
enum_item (+202 nodes collapsed)
impl_item (+81 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The Tauri [`WebviewDispatch`] for [`Wry`].\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+46 nodes collapsed)
impl_item (+2701 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " The Tauri [`WindowDispatch`] for [`Wry`].\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+31 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
function_item (+63 nodes collapsed)
impl_item
impl "impl"
type_parameters
< "<"
type_parameter
type_identifier "T"
trait_bounds
: ":"
type_identifier "UserEvent"
> ">"
generic_type
type_identifier "WindowDispatch"
type_arguments
< "<"
type_identifier "T"
> ">"
for "for"
generic_type
type_identifier "WryWindowDispatcher"
type_arguments
< "<"
type_identifier "T"
> ">"
declaration_list
{ "{"
type_item
type "type"
type_identifier "Runtime"
= "="
generic_type
type_identifier "Wry"
type_arguments
< "<"
type_identifier "T"
> ">"
; ";"
type_item
type "type"
type_identifier "WindowBuilder"
= "="
type_identifier "WindowBuilderWrapper"
; ";"
function_item (+73 nodes collapsed)
function_item (+109 nodes collapsed)
line_comment
// "//"
function_item (+30 nodes collapsed)
function_item (+37 nodes collapsed)
function_item (+37 nodes collapsed)
function_item (+35 nodes collapsed)
function_item (+35 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the window's current decoration state.\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the window's current resizable state.\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's maximize button state\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's minimize button state\n"
function_item (+30 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Gets the current native window's close button state\n"
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+67 nodes collapsed)
function_item (+67 nodes collapsed)
function_item (+156 nodes collapsed)
function_item (+82 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
function_item (+30 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+49 nodes collapsed)
attribute_item (+47 nodes collapsed)
function_item (+49 nodes collapsed)
function_item (+111 nodes collapsed)
line_comment
// "//"
function_item (+51 nodes collapsed)
function_item (+78 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
function_item (+89 nodes collapsed)
line_comment
// "//"
line_comment
// "//"
function_item (+63 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+81 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+70 nodes collapsed)
function_item (+70 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+61 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+61 nodes collapsed)
function_item (+51 nodes collapsed)
function_item
fn "fn"
identifier "set_focusable"
parameters
( "("
self_parameter
& "&"
self "self"
, ","
parameter
identifier "focusable"
: ":"
primitive_type "bool"
) ")"
-> "->"
generic_type
type_identifier "Result"
type_arguments
< "<"
unit_type
( "("
) ")"
> ">"
block
{ "{"
call_expression
identifier "send_user_message"
arguments
( "("
reference_expression
& "&"
field_expression
self "self"
. "."
field_identifier "context"
, ","
call_expression
scoped_identifier
identifier "Message"
:: "::"
identifier "Window"
arguments
( "("
field_expression
self "self"
. "."
field_identifier "window_id"
, ","
call_expression
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "SetFocusable"
arguments
( "("
identifier "focusable"
) ")"
) ")"
, ","
) ")"
} "}"
function_item (+75 nodes collapsed)
function_item (+61 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+85 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+51 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+79 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+126 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+64 nodes collapsed)
function_item (+62 nodes collapsed)
function_item (+66 nodes collapsed)
function_item (+66 nodes collapsed)
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+70 nodes collapsed)
impl_item (+49 nodes collapsed)
impl_item (+153 nodes collapsed)
struct_item (+153 nodes collapsed)
impl_item (+30 nodes collapsed)
impl_item (+101 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+28 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "ios"
" "\""
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+88 nodes collapsed)
trait_item (+52 nodes collapsed)
trait_item (+110 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " A Tauri [`Runtime`] wrapper around wry.\n"
struct_item (+41 nodes collapsed)
impl_item (+165 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " A handle to the Wry runtime.\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+26 nodes collapsed)
line_comment
// "//"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "clippy"
:: "::"
identifier "non_send_fields_in_send_ty"
) ")"
] "]"
impl_item (+22 nodes collapsed)
impl_item (+430 nodes collapsed)
impl_item (+1540 nodes collapsed)
impl_item (+514 nodes collapsed)
impl_item (+2457 nodes collapsed)
function_item (+466 nodes collapsed)
struct_item (+95 nodes collapsed)
struct_item (+21 nodes collapsed)
function_item
fn "fn"
identifier "handle_user_message"
type_parameters
< "<"
type_parameter
type_identifier "T"
trait_bounds
: ":"
type_identifier "UserEvent"
> ">"
parameters (+35 nodes collapsed)
block
{ "{"
let_declaration
let "let"
struct_pattern
type_identifier "UserMessageContext"
{ "{"
field_pattern
shorthand_field_identifier "window_id_map"
, ","
field_pattern
shorthand_field_identifier "windows"
, ","
} "}"
= "="
identifier "context"
; ";"
expression_statement
match_expression
match "match"
identifier "message"
match_block
{ "{"
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "Task"
( "("
identifier "task"
) ")"
=> "=>"
call_expression
identifier "task"
arguments
( "("
) ")"
, ","
match_arm (+43 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+22 nodes collapsed)
match_arm (+255 nodes collapsed)
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "Window"
( "("
identifier "id"
, ","
identifier "window_message"
) ")"
=> "=>"
block
{ "{"
let_declaration (+96 nodes collapsed)
expression_statement
if_expression
if "if"
let_condition (+22 nodes collapsed)
block
{ "{"
expression_statement
match_expression
match "match"
identifier "window_message"
match_block
{ "{"
match_arm (+43 nodes collapsed)
line_comment
// "//"
match_arm (+35 nodes collapsed)
match_arm (+77 nodes collapsed)
match_arm (+77 nodes collapsed)
match_arm (+53 nodes collapsed)
match_arm (+47 nodes collapsed)
match_arm (+42 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+47 nodes collapsed)
match_arm (+44 nodes collapsed)
match_arm (+94 nodes collapsed)
match_arm (+101 nodes collapsed)
match_arm (+61 nodes collapsed)
match_arm (+46 nodes collapsed)
match_arm (+35 nodes collapsed)
match_arm (+35 nodes collapsed)
line_comment
// "//"
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Center"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "center"
arguments
( "("
) ")"
, ","
match_arm (+41 nodes collapsed)
match_arm (+107 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Maximize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_maximized"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Unmaximize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_maximized"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Minimize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_minimized"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Unminimize"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_minimized"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm (+21 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Show"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_visible"
arguments
( "("
boolean_literal
true "true"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Hide"
=> "=>"
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_visible"
arguments
( "("
boolean_literal
false "false"
) ")"
, ","
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Close"
=> "=>"
block
{ "{"
macro_invocation
identifier "panic"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "cannot handle `WindowMessage::Close` on the main thread"
" "\""
) ")"
} "}"
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "Destroy"
=> "=>"
block
{ "{"
macro_invocation
identifier "panic"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "cannot handle `WindowMessage::Destroy` on the main thread"
" "\""
) ")"
} "}"
match_arm (+103 nodes collapsed)
match_arm (+85 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+21 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+49 nodes collapsed)
match_arm (+49 nodes collapsed)
match_arm (+67 nodes collapsed)
match_arm (+34 nodes collapsed)
match_arm (+57 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "SetFocus"
=> "=>"
block
{ "{"
expression_statement
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_focus"
arguments
( "("
) ")"
; ";"
} "}"
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "SetFocusable"
( "("
identifier "focusable"
) ")"
=> "=>"
block
{ "{"
expression_statement
call_expression
field_expression
identifier "window"
. "."
field_identifier "set_focusable"
arguments
( "("
identifier "focusable"
) ")"
; ";"
} "}"
match_arm (+30 nodes collapsed)
match_arm (+59 nodes collapsed)
match_arm (+28 nodes collapsed)
match_arm (+25 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+39 nodes collapsed)
match_arm (+28 nodes collapsed)
match_arm (+23 nodes collapsed)
match_arm (+201 nodes collapsed)
match_arm
match_pattern
scoped_identifier
identifier "WindowMessage"
:: "::"
identifier "RequestRedraw"
=> "=>"
block
{ "{"
expression_statement
call_expression
field_expression
identifier "window"
. "."
field_identifier "request_redraw"
arguments
( "("
) ")"
; ";"
} "}"
match_arm (+189 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm (+58 nodes collapsed)
match_arm (+36 nodes collapsed)
match_arm (+208 nodes collapsed)
match_arm (+40 nodes collapsed)
match_arm (+30 nodes collapsed)
match_arm (+34 nodes collapsed)
} "}"
} "}"
} "}"
match_arm (+3855 nodes collapsed)
match_arm (+250 nodes collapsed)
match_arm (+111 nodes collapsed)
match_arm (+468 nodes collapsed)
match_arm
match_pattern
tuple_struct_pattern
scoped_identifier
identifier "Message"
:: "::"
identifier "UserEvent"
( "("
_ "_"
) ")"
=> "=>"
unit_expression
( "("
) ")"
, ","
match_arm (+145 nodes collapsed)
} "}"
} "}"
function_item (+2174 nodes collapsed)
function_item (+307 nodes collapsed)
function_item (+90 nodes collapsed)
function_item (+215 nodes collapsed)
function_item (+1956 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " the kind of the webview\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "PartialEq"
, ","
identifier "Eq"
, ","
identifier "PartialOrd"
, ","
identifier "Ord"
, ","
identifier "Clone"
, ","
identifier "Copy"
) ")"
] "]"
enum_item
enum "enum"
type_identifier "WebviewKind"
enum_variant_list
{ "{"
line_comment
// "//"
enum_variant
identifier "WindowContent"
, ","
line_comment
// "//"
enum_variant
identifier "WindowChild"
, ","
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+26 nodes collapsed)
function_item (+4962 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Create a wry ipc handler from a tauri ipc handler.\n"
function_item (+183 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
function_item (+199 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "unused_variables"
) ")"
] "]"
function_item (+46 nodes collapsed)
function_item (+80 nodes collapsed)