Skip to main content

IDebugWindowMethods

Trait IDebugWindowMethods 

Source
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§

Source

fn set_menu(self, menu: impl Into<DebugMenu>)

SetMenu(crate::app::debugmenu::DebugMenu) overload

Source

fn get_mesh(self) -> DebugMesh

get_Mesh() overload

Source

fn get_text_width(self, text: impl Into<Il2CppString>) -> f32

GetTextWidth(::unity::Il2CppString) overload

Source

fn get_text_height(self, text: impl Into<Il2CppString>) -> f32

GetTextHeight(::unity::Il2CppString) overload

Source

fn awake(self)

Awake() overload

Source

fn start(self)

Start() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn try_get_info(self, ch: impl Into<u16>) -> (bool, CharacterInfo)

TryGetInfo(u16, *mutcrate::unity_engine::characterinfo::CharacterInfo) overload

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn on_draw(self)

OnDraw() overload

Source

fn late_update(self)

LateUpdate() overload

Source

fn set_clip(self, material: impl Into<Material>, rect: impl Into<Rect>)

SetClip(crate::unity_engine::material::Material, crate::unity_engine::rect::Rect) overload

Source

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

Source

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

Source

fn ctor(self)

.ctor() 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§

Source§

impl<__T: IDebugWindow> IDebugWindowMethods for __T

Available on crate feature app-debugwindow only.