Skip to main content

IDebugMenuRenderMethods

Trait IDebugMenuRenderMethods 

Source
pub trait IDebugMenuRenderMethods: IDebugMenuRender {
    // Provided methods
    fn start(self) { ... }
    fn update(self) { ... }
    fn set_menu(self, menu: impl Into<DebugMenu>) { ... }
    fn get_anchor_rect(
        self,
        rect: impl Into<Rect>,
        anchor: impl Into<GX_Anchor>,
    ) -> Rect { ... }
    fn draw_text(
        self,
        rect: impl Into<Rect>,
        color: impl Into<Color>,
        text: impl Into<Il2CppString>,
    ) { ... }
    fn draw_text_2(
        self,
        x: impl Into<f32>,
        y: impl Into<f32>,
        w: impl Into<f32>,
        h: impl Into<f32>,
        color: impl Into<Color>,
        text: impl Into<Il2CppString>,
    ) { ... }
    fn slide_rect_x(self, rect: impl Into<Rect>, size: impl Into<f32>) -> Rect { ... }
    fn slide_rect_y(self, rect: impl Into<Rect>, size: impl Into<f32>) -> Rect { ... }
    fn on_gui(self) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn start(self)

Start() overload

Source

fn update(self)

Update() overload

Source

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

SetMenu(crate::app::debugmenu::DebugMenu) 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 draw_text( self, rect: impl Into<Rect>, color: impl Into<Color>, text: impl Into<Il2CppString>, )

DrawText(crate::unity_engine::rect::Rect, crate::unity_engine::color::Color, ::unity::Il2CppString) overload

Source

fn draw_text_2( self, x: impl Into<f32>, y: impl Into<f32>, w: impl Into<f32>, h: impl Into<f32>, color: impl Into<Color>, text: impl Into<Il2CppString>, )

DrawText(f32, f32, f32, f32, crate::unity_engine::color::Color, ::unity::Il2CppString) overload

Source

fn slide_rect_x(self, rect: impl Into<Rect>, size: impl Into<f32>) -> Rect

SlideRectX(crate::unity_engine::rect::Rect, f32) overload

Source

fn slide_rect_y(self, rect: impl Into<Rect>, size: impl Into<f32>) -> Rect

SlideRectY(crate::unity_engine::rect::Rect, f32) overload

Source

fn on_gui(self)

OnGUI() 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: IDebugMenuRender> IDebugMenuRenderMethods for __T

Available on crate feature root-debugmenurender only.