pub trait IDebugWindowMethods: IDebugWindow {
Show 19 methods
// Provided methods
fn set_menu(self, menu: impl Into<DebugMenu>) { ... }
fn get_mesh(self) -> DebugMesh { ... }
fn get_text_width(self, text: impl Into<Il2CppString>) -> f32 { ... }
fn get_text_height(self, text: impl Into<Il2CppString>) -> f32 { ... }
fn awake(self) { ... }
fn start(self) { ... }
fn on_destroy(self) { ... }
fn try_get_info(self, ch: impl Into<u16>) -> (bool, CharacterInfo) { ... }
fn draw_font(
self,
x: impl Into<f32>,
y: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
ch: impl Into<u16>,
scale: impl Into<f32>,
outline: impl Into<bool>,
) -> f32 { ... }
fn draw_text(
self,
x: impl Into<f32>,
y: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
text: impl Into<Il2CppString>,
scale: impl Into<f32>,
outline: impl Into<bool>,
) { ... }
fn draw_rect(
self,
x: impl Into<f32>,
y: impl Into<f32>,
w: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
) { ... }
fn draw_rect_2(self, rect: impl Into<Rect>, color: impl Into<Color>) { ... }
fn draw_scroll_bar(
self,
x: impl Into<f32>,
y: impl Into<f32>,
color: impl Into<Color>,
height: impl Into<f32>,
pos: impl Into<f32>,
max: impl Into<f32>,
) { ... }
fn on_draw(self) { ... }
fn late_update(self) { ... }
fn set_clip(self, material: impl Into<Material>, rect: impl Into<Rect>) { ... }
fn set_clip_2(
self,
material: impl Into<Material>,
x: impl Into<f32>,
y: impl Into<f32>,
w: impl Into<f32>,
h: impl Into<f32>,
) { ... }
fn get_anchor_rect(
self,
rect: impl Into<Rect>,
anchor: impl Into<GX_Anchor>,
) -> Rect { ... }
fn ctor(self) { ... }
}Provided Methods§
SetMenu(crate::app::debugmenu::DebugMenu) overload
Sourcefn get_text_width(self, text: impl Into<Il2CppString>) -> f32
fn get_text_width(self, text: impl Into<Il2CppString>) -> f32
GetTextWidth(::unity::Il2CppString) overload
Sourcefn get_text_height(self, text: impl Into<Il2CppString>) -> f32
fn get_text_height(self, text: impl Into<Il2CppString>) -> f32
GetTextHeight(::unity::Il2CppString) overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn try_get_info(self, ch: impl Into<u16>) -> (bool, CharacterInfo)
fn try_get_info(self, ch: impl Into<u16>) -> (bool, CharacterInfo)
TryGetInfo(u16, *mutcrate::unity_engine::characterinfo::CharacterInfo) overload
Sourcefn draw_font(
self,
x: impl Into<f32>,
y: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
ch: impl Into<u16>,
scale: impl Into<f32>,
outline: impl Into<bool>,
) -> f32
fn draw_font( self, x: impl Into<f32>, y: impl Into<f32>, h: impl Into<f32>, color: impl Into<Color>, ch: impl Into<u16>, scale: impl Into<f32>, outline: impl Into<bool>, ) -> f32
DrawFont(f32, f32, f32, crate::unity_engine::color::Color, u16, f32, bool) overload
Sourcefn draw_text(
self,
x: impl Into<f32>,
y: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
text: impl Into<Il2CppString>,
scale: impl Into<f32>,
outline: impl Into<bool>,
)
fn draw_text( self, x: impl Into<f32>, y: impl Into<f32>, h: impl Into<f32>, color: impl Into<Color>, text: impl Into<Il2CppString>, scale: impl Into<f32>, outline: impl Into<bool>, )
DrawText(f32, f32, f32, crate::unity_engine::color::Color, ::unity::Il2CppString, f32, bool) overload
Sourcefn draw_rect(
self,
x: impl Into<f32>,
y: impl Into<f32>,
w: impl Into<f32>,
h: impl Into<f32>,
color: impl Into<Color>,
)
fn draw_rect( self, x: impl Into<f32>, y: impl Into<f32>, w: impl Into<f32>, h: impl Into<f32>, color: impl Into<Color>, )
DrawRect(f32, f32, f32, f32, crate::unity_engine::color::Color) overload
Sourcefn draw_rect_2(self, rect: impl Into<Rect>, color: impl Into<Color>)
fn draw_rect_2(self, rect: impl Into<Rect>, color: impl Into<Color>)
DrawRect(crate::unity_engine::rect::Rect, crate::unity_engine::color::Color) overload
Sourcefn draw_scroll_bar(
self,
x: impl Into<f32>,
y: impl Into<f32>,
color: impl Into<Color>,
height: impl Into<f32>,
pos: impl Into<f32>,
max: impl Into<f32>,
)
fn draw_scroll_bar( self, x: impl Into<f32>, y: impl Into<f32>, color: impl Into<Color>, height: impl Into<f32>, pos: impl Into<f32>, max: impl Into<f32>, )
DrawScrollBar(f32, f32, crate::unity_engine::color::Color, f32, f32, f32) overload
Sourcefn late_update(self)
fn late_update(self)
LateUpdate() overload
Sourcefn set_clip(self, material: impl Into<Material>, rect: impl Into<Rect>)
fn set_clip(self, material: impl Into<Material>, rect: impl Into<Rect>)
SetClip(crate::unity_engine::material::Material, crate::unity_engine::rect::Rect) overload
Sourcefn set_clip_2(
self,
material: impl Into<Material>,
x: impl Into<f32>,
y: impl Into<f32>,
w: impl Into<f32>,
h: impl Into<f32>,
)
fn set_clip_2( self, material: impl Into<Material>, x: impl Into<f32>, y: impl Into<f32>, w: impl Into<f32>, h: impl Into<f32>, )
SetClip(crate::unity_engine::material::Material, f32, f32, f32, f32) overload
Sourcefn get_anchor_rect(
self,
rect: impl Into<Rect>,
anchor: impl Into<GX_Anchor>,
) -> Rect
fn get_anchor_rect( self, rect: impl Into<Rect>, anchor: impl Into<GX_Anchor>, ) -> Rect
GetAnchorRect(crate::unity_engine::rect::Rect, crate::app::gx::GX_Anchor) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IDebugWindow> IDebugWindowMethods for __T
app-debugwindow only.