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§
GetMenuItemContentMax() overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
GetRectTransform() overload
GetMenu() overload
SetMenu(crate::app::basicmenu::BasicMenu) overload
Sourcefn is_opening(self) -> bool
fn is_opening(self) -> bool
IsOpening() overload
Sourcefn is_closing(self) -> bool
fn is_closing(self) -> bool
IsClosing() overload
Sourcefn set_animator(self, anim: impl Into<Animator>)
fn set_animator(self, anim: impl Into<Animator>)
SetAnimator(crate::unity_engine::animator::Animator) overload
Sourcefn calc_cursor_moved_pos_x(self, menu_item_index: impl Into<i32>) -> f32
fn calc_cursor_moved_pos_x(self, menu_item_index: impl Into<i32>) -> f32
CalcCursorMovedPosX(i32) overload
Sourcefn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32
fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32
CalcCursorMovedPosY(i32) overload
Sourcefn calc_cursor_width(self, menu_item_index: impl Into<i32>) -> f32
fn calc_cursor_width(self, menu_item_index: impl Into<i32>) -> f32
CalcCursorWidth(i32) overload
Sourcefn calc_cursor_height(self, menu_item_index: impl Into<i32>) -> f32
fn calc_cursor_height(self, menu_item_index: impl Into<i32>) -> f32
CalcCursorHeight(i32) overload
Sourcefn now_cursor_width(self) -> f32
fn now_cursor_width(self) -> f32
NowCursorWidth() overload
Sourcefn now_cursor_height(self) -> f32
fn now_cursor_height(self) -> f32
NowCursorHeight() overload
Sourcefn get_screen_scale(self) -> f32
fn get_screen_scale(self) -> f32
GetScreenScale() overload
Sourcefn init_obj_reference(self)
fn init_obj_reference(self)
InitObjReference() overload
Sourcefn set_cursor_move_frame(self, frame: impl Into<f32>)
fn set_cursor_move_frame(self, frame: impl Into<f32>)
SetCursorMoveFrame(f32) overload
Sourcefn cursor_move_instant(self)
fn cursor_move_instant(self)
CursorMoveInstant() overload
Sourcefn set_scroll_frame(self, frame: impl Into<f32>)
fn set_scroll_frame(self, frame: impl Into<f32>)
SetScrollFrame(f32) overload
Sourcefn set_scroll_bar_handle_size(self, size: impl Into<f32>)
fn set_scroll_bar_handle_size(self, size: impl Into<f32>)
SetScrollBarHandleSize(f32) overload
Sourcefn is_scroll_busy(self) -> bool
fn is_scroll_busy(self) -> bool
IsScrollBusy() overload
Sourcefn scroll_instant(self)
fn scroll_instant(self)
ScrollInstant() overload
Sourcefn reset_scroll(self)
fn reset_scroll(self)
ResetScroll() overload
Sourcefn set_cursor_color(self, c: impl Into<Color>)
fn set_cursor_color(self, c: impl Into<Color>)
SetCursorColor(crate::unity_engine::color::Color) overload
Sourcefn put_cursor_in_front(self)
fn put_cursor_in_front(self)
PutCursorInFront() overload
Sourcefn put_cursor_in_back(self)
fn put_cursor_in_back(self)
PutCursorInBack() overload
Sourcefn set_cursor_to_keep_animator_state(self, keep: impl Into<bool>)
fn set_cursor_to_keep_animator_state(self, keep: impl Into<bool>)
SetCursorToKeepAnimatorState(bool) overload
Sourcefn move_front_cursor_from(
self,
from_x: impl Into<f32>,
from_y: impl Into<f32>,
frame: impl Into<f32>,
)
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
Sourcefn move_front_cursor_from_2(
self,
from_menu_item: impl Into<BasicMenuItem>,
frame: impl Into<f32>,
)
fn move_front_cursor_from_2( self, from_menu_item: impl Into<BasicMenuItem>, frame: impl Into<f32>, )
MoveFrontCursorFrom(crate::app::basicmenuitem::BasicMenuItem, f32) overload
Sourcefn set_front_cursor_visibility(self, visibility: impl Into<bool>)
fn set_front_cursor_visibility(self, visibility: impl Into<bool>)
SetFrontCursorVisibility(bool) overload
Sourcefn restart_cursor_anim(self)
fn restart_cursor_anim(self)
RestartCursorAnim() overload
GetSubMenuBaseTransform() overload
Sourcefn un_suspend(self)
fn un_suspend(self)
UnSuspend() overload
Sourcefn set_color(self, color: impl Into<Color>)
fn set_color(self, color: impl Into<Color>)
SetColor(crate::unity_engine::color::Color) overload
BuildMenuItemContent() overload
Sourcefn build_material(self)
fn build_material(self)
BuildMaterial() overload
Sourcefn build_content_pos(self)
fn build_content_pos(self)
BuildContentPos() overload
Sourcefn get_cursor_offset_x(self) -> f32
fn get_cursor_offset_x(self) -> f32
GetCursorOffsetX() overload
Sourcefn get_cursor_offset_y(self) -> f32
fn get_cursor_offset_y(self) -> f32
GetCursorOffsetY() overload
Sourcefn open_anime(self)
fn open_anime(self)
OpenAnime() overload
Sourcefn close_anime(self)
fn close_anime(self)
CloseAnime() overload
Sourcefn after_build(self)
fn after_build(self)
AfterBuild() overload
Sourcefn get_anchor_type(self) -> BasicMenu_AnchorType
fn get_anchor_type(self) -> BasicMenu_AnchorType
GetAnchorType() overload
Sourcefn set_anchor_type(
self,
anchor_type: impl Into<BasicMenu_AnchorType>,
x: impl Into<f32>,
y: impl Into<f32>,
)
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
Sourcefn set_anchor_type_from_screen_coord(
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>, )
SetAnchorTypeFromScreenCoord(crate::app::basicmenu::BasicMenu_AnchorType, f32, f32) overload
Sourcefn screen_point_to_local_point(
self,
x: impl Into<f32>,
y: impl Into<f32>,
) -> Vector2
fn screen_point_to_local_point( self, x: impl Into<f32>, y: impl Into<f32>, ) -> Vector2
ScreenPointToLocalPoint(f32, f32) overload
SetTransformAsSubMenu(crate::app::basicmenu::BasicMenu, crate::app::basicmenuitem::BasicMenuItem) overload
Sourcefn update_pos(self)
fn update_pos(self)
UpdatePos() overload
Sourcefn update_after_scroll(self, is_force_update: impl Into<bool>)
fn update_after_scroll(self, is_force_update: impl Into<bool>)
UpdateAfterScroll(bool) overload
Sourcefn force_rebuild_layout(self)
fn force_rebuild_layout(self)
ForceRebuildLayout() overload
CycleMenuItemContent(bool, i32) overload
Sourcefn get_line_height_for_scroll(self) -> f32
fn get_line_height_for_scroll(self) -> f32
GetLineHeightForScroll() overload
Sourcefn on_destroy(self)
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§
impl<__T: IBasicMenuContent> IBasicMenuContentMethods for __T
app-basicmenucontent only.