Skip to main content

IBasicMenuContentMethods

Trait IBasicMenuContentMethods 

Source
pub trait IBasicMenuContentMethods: IBasicMenuContent {
Show 73 methods // Provided methods fn ctor(self) { ... } fn get_menu_item_content_max(self) -> i32 { ... } fn get_rect_transform(self) -> RectTransform { ... } fn get_menu(self) -> BasicMenu { ... } fn set_menu(self, menu: impl Into<BasicMenu>) { ... } fn is_opening(self) -> bool { ... } fn is_closing(self) -> bool { ... } fn is_closed(self) -> bool { ... } fn set_animator(self, anim: impl Into<Animator>) { ... } fn calc_cursor_moved_pos_x(self, menu_item_index: impl Into<i32>) -> f32 { ... } fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32 { ... } fn calc_cursor_width(self, menu_item_index: impl Into<i32>) -> f32 { ... } fn calc_cursor_height(self, menu_item_index: impl Into<i32>) -> f32 { ... } fn now_cursor_width(self) -> f32 { ... } fn now_cursor_height(self) -> f32 { ... } fn get_screen_scale(self) -> f32 { ... } fn init_obj_reference(self) { ... } fn delete(self) { ... } fn set_cursor_move_frame(self, frame: impl Into<f32>) { ... } fn cursor_move_instant(self) { ... } fn set_scroll_frame(self, frame: impl Into<f32>) { ... } fn set_scroll_bar_handle_size(self, size: impl Into<f32>) { ... } fn is_scroll_busy(self) -> bool { ... } fn scroll_instant(self) { ... } fn reset_scroll(self) { ... } fn set_cursor_color(self, c: impl Into<Color>) { ... } fn put_cursor_in_front(self) { ... } fn put_cursor_in_back(self) { ... } fn set_cursor_to_keep_animator_state(self, keep: impl Into<bool>) { ... } fn move_front_cursor_from( self, from_x: impl Into<f32>, from_y: impl Into<f32>, frame: impl Into<f32>, ) { ... } fn move_front_cursor_from_2( self, from_menu_item: impl Into<BasicMenuItem>, frame: impl Into<f32>, ) { ... } fn set_front_cursor_visibility(self, visibility: impl Into<bool>) { ... } fn restart_cursor_anim(self) { ... } fn get_sub_menu_base_transform(self) -> RectTransform { ... } fn suspend(self) { ... } fn un_suspend(self) { ... } fn set_color(self, color: impl Into<Color>) { ... } fn build_menu_item_content(self) { ... } fn build_material(self) { ... } fn build_wh(self) { ... } fn build_content_pos(self) { ... } fn calc_w(self) -> f32 { ... } fn calc_h(self) -> f32 { ... } fn get_cursor_offset_x(self) -> f32 { ... } fn get_cursor_offset_y(self) -> f32 { ... } fn open_anime(self) { ... } fn close_anime(self) { ... } fn after_build(self) { ... } fn set_pivot(self, x: impl Into<f32>, y: impl Into<f32>) { ... } fn get_anchor_type(self) -> BasicMenu_AnchorType { ... } fn set_anchor_type( self, anchor_type: impl Into<BasicMenu_AnchorType>, x: impl Into<f32>, y: impl Into<f32>, ) { ... } fn set_anchor_type_from_screen_coord( self, anchor_type: impl Into<BasicMenu_AnchorType>, x: impl Into<f32>, y: impl Into<f32>, ) { ... } fn screen_point_to_local_point( self, x: impl Into<f32>, y: impl Into<f32>, ) -> Vector2 { ... } fn get_x(self) -> f32 { ... } fn get_y(self) -> f32 { ... } fn get_pos(self) -> Vector2 { ... } fn set_x(self, x: impl Into<f32>) { ... } fn set_y(self, y: impl Into<f32>) { ... } fn set_pos(self, x: impl Into<f32>, y: impl Into<f32>) { ... } fn set_transform_as_sub_menu( self, parent_menu: impl Into<BasicMenu>, parent_menu_item: impl Into<BasicMenuItem>, ) { ... } fn update_x(self) { ... } fn update_y(self) { ... } fn update_pos(self) { ... } fn get_w(self) -> f32 { ... } fn get_h(self) -> f32 { ... } fn update_after_scroll(self, is_force_update: impl Into<bool>) { ... } fn force_rebuild_layout(self) { ... } fn cycle_menu_item_content( self, is_forward: impl Into<bool>, cycle_count: impl Into<i32>, ) { ... } fn get_line_height_for_scroll(self) -> f32 { ... } fn awake(self) { ... } fn start(self) { ... } fn update(self) { ... } fn on_destroy(self) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn get_menu_item_content_max(self) -> i32

GetMenuItemContentMax() overload

Source

fn get_rect_transform(self) -> RectTransform

GetRectTransform() overload

Source

fn get_menu(self) -> BasicMenu

GetMenu() overload

Source

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

SetMenu(crate::app::basicmenu::BasicMenu) overload

Source

fn is_opening(self) -> bool

IsOpening() overload

Source

fn is_closing(self) -> bool

IsClosing() overload

Source

fn is_closed(self) -> bool

IsClosed() overload

Source

fn set_animator(self, anim: impl Into<Animator>)

SetAnimator(crate::unity_engine::animator::Animator) overload

Source

fn calc_cursor_moved_pos_x(self, menu_item_index: impl Into<i32>) -> f32

CalcCursorMovedPosX(i32) overload

Source

fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32

CalcCursorMovedPosY(i32) overload

Source

fn calc_cursor_width(self, menu_item_index: impl Into<i32>) -> f32

CalcCursorWidth(i32) overload

Source

fn calc_cursor_height(self, menu_item_index: impl Into<i32>) -> f32

CalcCursorHeight(i32) overload

Source

fn now_cursor_width(self) -> f32

NowCursorWidth() overload

Source

fn now_cursor_height(self) -> f32

NowCursorHeight() overload

Source

fn get_screen_scale(self) -> f32

GetScreenScale() overload

Source

fn init_obj_reference(self)

InitObjReference() overload

Source

fn delete(self)

Delete() overload

Source

fn set_cursor_move_frame(self, frame: impl Into<f32>)

SetCursorMoveFrame(f32) overload

Source

fn cursor_move_instant(self)

CursorMoveInstant() overload

Source

fn set_scroll_frame(self, frame: impl Into<f32>)

SetScrollFrame(f32) overload

Source

fn set_scroll_bar_handle_size(self, size: impl Into<f32>)

SetScrollBarHandleSize(f32) overload

Source

fn is_scroll_busy(self) -> bool

IsScrollBusy() overload

Source

fn scroll_instant(self)

ScrollInstant() overload

Source

fn reset_scroll(self)

ResetScroll() overload

Source

fn set_cursor_color(self, c: impl Into<Color>)

SetCursorColor(crate::unity_engine::color::Color) overload

Source

fn put_cursor_in_front(self)

PutCursorInFront() overload

Source

fn put_cursor_in_back(self)

PutCursorInBack() overload

Source

fn set_cursor_to_keep_animator_state(self, keep: impl Into<bool>)

SetCursorToKeepAnimatorState(bool) overload

Source

fn move_front_cursor_from( self, from_x: impl Into<f32>, from_y: impl Into<f32>, frame: impl Into<f32>, )

MoveFrontCursorFrom(f32, f32, f32) overload

Source

fn move_front_cursor_from_2( self, from_menu_item: impl Into<BasicMenuItem>, frame: impl Into<f32>, )

MoveFrontCursorFrom(crate::app::basicmenuitem::BasicMenuItem, f32) overload

Source

fn set_front_cursor_visibility(self, visibility: impl Into<bool>)

SetFrontCursorVisibility(bool) overload

Source

fn restart_cursor_anim(self)

RestartCursorAnim() overload

Source

fn get_sub_menu_base_transform(self) -> RectTransform

GetSubMenuBaseTransform() overload

Source

fn suspend(self)

Suspend() overload

Source

fn un_suspend(self)

UnSuspend() overload

Source

fn set_color(self, color: impl Into<Color>)

SetColor(crate::unity_engine::color::Color) overload

Source

fn build_menu_item_content(self)

BuildMenuItemContent() overload

Source

fn build_material(self)

BuildMaterial() overload

Source

fn build_wh(self)

BuildWH() overload

Source

fn build_content_pos(self)

BuildContentPos() overload

Source

fn calc_w(self) -> f32

CalcW() overload

Source

fn calc_h(self) -> f32

CalcH() overload

Source

fn get_cursor_offset_x(self) -> f32

GetCursorOffsetX() overload

Source

fn get_cursor_offset_y(self) -> f32

GetCursorOffsetY() overload

Source

fn open_anime(self)

OpenAnime() overload

Source

fn close_anime(self)

CloseAnime() overload

Source

fn after_build(self)

AfterBuild() overload

Source

fn set_pivot(self, x: impl Into<f32>, y: impl Into<f32>)

SetPivot(f32, f32) overload

Source

fn get_anchor_type(self) -> BasicMenu_AnchorType

GetAnchorType() overload

Source

fn set_anchor_type( self, anchor_type: impl Into<BasicMenu_AnchorType>, x: impl Into<f32>, y: impl Into<f32>, )

SetAnchorType(crate::app::basicmenu::BasicMenu_AnchorType, f32, f32) overload

Source

fn set_anchor_type_from_screen_coord( self, anchor_type: impl Into<BasicMenu_AnchorType>, x: impl Into<f32>, y: impl Into<f32>, )

SetAnchorTypeFromScreenCoord(crate::app::basicmenu::BasicMenu_AnchorType, f32, f32) overload

Source

fn screen_point_to_local_point( self, x: impl Into<f32>, y: impl Into<f32>, ) -> Vector2

ScreenPointToLocalPoint(f32, f32) overload

Source

fn get_x(self) -> f32

GetX() overload

Source

fn get_y(self) -> f32

GetY() overload

Source

fn get_pos(self) -> Vector2

GetPos() overload

Source

fn set_x(self, x: impl Into<f32>)

SetX(f32) overload

Source

fn set_y(self, y: impl Into<f32>)

SetY(f32) overload

Source

fn set_pos(self, x: impl Into<f32>, y: impl Into<f32>)

SetPos(f32, f32) overload

Source

fn set_transform_as_sub_menu( self, parent_menu: impl Into<BasicMenu>, parent_menu_item: impl Into<BasicMenuItem>, )

SetTransformAsSubMenu(crate::app::basicmenu::BasicMenu, crate::app::basicmenuitem::BasicMenuItem) overload

Source

fn update_x(self)

UpdateX() overload

Source

fn update_y(self)

UpdateY() overload

Source

fn update_pos(self)

UpdatePos() overload

Source

fn get_w(self) -> f32

GetW() overload

Source

fn get_h(self) -> f32

GetH() overload

Source

fn update_after_scroll(self, is_force_update: impl Into<bool>)

UpdateAfterScroll(bool) overload

Source

fn force_rebuild_layout(self)

ForceRebuildLayout() overload

Source

fn cycle_menu_item_content( self, is_forward: impl Into<bool>, cycle_count: impl Into<i32>, )

CycleMenuItemContent(bool, i32) overload

Source

fn get_line_height_for_scroll(self) -> f32

GetLineHeightForScroll() overload

Source

fn awake(self)

Awake() overload

Source

fn start(self)

Start() overload

Source

fn update(self)

Update() overload

Source

fn on_destroy(self)

OnDestroy() 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: IBasicMenuContent> IBasicMenuContentMethods for __T

Available on crate feature app-basicmenucontent only.