pub trait ITMP_DropdownMethods: ITMP_Dropdown {
Show 51 methods
// Provided methods
fn get_template(self) -> RectTransform { ... }
fn set_template(self, value: impl Into<RectTransform>) { ... }
fn get_caption_text(self) -> TMP_Text { ... }
fn set_caption_text(self, value: impl Into<TMP_Text>) { ... }
fn get_caption_image(self) -> Image { ... }
fn set_caption_image(self, value: impl Into<Image>) { ... }
fn get_placeholder(self) -> Graphic { ... }
fn set_placeholder(self, value: impl Into<Graphic>) { ... }
fn get_item_text(self) -> TMP_Text { ... }
fn set_item_text(self, value: impl Into<TMP_Text>) { ... }
fn get_item_image(self) -> Image { ... }
fn set_item_image(self, value: impl Into<Image>) { ... }
fn get_options(self) -> List_1<TMP_Dropdown_OptionData> { ... }
fn set_options(self, value: impl Into<List_1<TMP_Dropdown_OptionData>>) { ... }
fn get_on_value_changed(self) -> TMP_Dropdown_DropdownEvent { ... }
fn set_on_value_changed(self, value: impl Into<TMP_Dropdown_DropdownEvent>) { ... }
fn get_alpha_fade_speed(self) -> f32 { ... }
fn set_alpha_fade_speed(self, value: impl Into<f32>) { ... }
fn get_value(self) -> i32 { ... }
fn set_value(self, value: impl Into<i32>) { ... }
fn set_value_without_notify(self, input: impl Into<i32>) { ... }
fn set_value_2(self, value: impl Into<i32>, send_callback: impl Into<bool>) { ... }
fn get_is_expanded(self) -> bool { ... }
fn ctor(self) { ... }
fn awake(self) { ... }
fn start(self) { ... }
fn on_disable(self) { ... }
fn refresh_shown_value(self) { ... }
fn add_options(self, options: impl Into<List_1<TMP_Dropdown_OptionData>>) { ... }
fn add_options_2(self, options: impl Into<List_1<Il2CppString>>) { ... }
fn add_options_3(self, options: impl Into<List_1<Sprite>>) { ... }
fn clear_options(self) { ... }
fn setup_template(self) { ... }
fn on_pointer_click(self, event_data: impl Into<PointerEventData>) { ... }
fn on_submit(self, event_data: impl Into<BaseEventData>) { ... }
fn on_cancel(self, event_data: impl Into<BaseEventData>) { ... }
fn show(self) { ... }
fn create_blocker(self, root_canvas: impl Into<Canvas>) -> GameObject { ... }
fn destroy_blocker(self, blocker: impl Into<GameObject>) { ... }
fn create_dropdown_list(self, template: impl Into<GameObject>) -> GameObject { ... }
fn destroy_dropdown_list(self, dropdown_list: impl Into<GameObject>) { ... }
fn create_item(
self,
item_template: impl Into<TMP_Dropdown_DropdownItem>,
) -> TMP_Dropdown_DropdownItem { ... }
fn destroy_item(self, item: impl Into<TMP_Dropdown_DropdownItem>) { ... }
fn add_item(
self,
data: impl Into<TMP_Dropdown_OptionData>,
selected: impl Into<bool>,
item_template: impl Into<TMP_Dropdown_DropdownItem>,
items: impl Into<List_1<TMP_Dropdown_DropdownItem>>,
) -> TMP_Dropdown_DropdownItem { ... }
fn alpha_fade_list(self, duration: impl Into<f32>, alpha: impl Into<f32>) { ... }
fn alpha_fade_list_2(
self,
duration: impl Into<f32>,
start: impl Into<f32>,
end: impl Into<f32>,
) { ... }
fn set_alpha(self, alpha: impl Into<f32>) { ... }
fn hide(self) { ... }
fn delayed_destroy_dropdown_list(self, delay: impl Into<f32>) -> IEnumerator { ... }
fn immediate_destroy_dropdown_list(self) { ... }
fn on_select_item(self, toggle: impl Into<Toggle>) { ... }
}Provided Methods§
Sourcefn get_template(self) -> RectTransform
fn get_template(self) -> RectTransform
get_template() overload
Sourcefn set_template(self, value: impl Into<RectTransform>)
fn set_template(self, value: impl Into<RectTransform>)
set_template(crate::unity_engine::recttransform::RectTransform) overload
Sourcefn get_caption_text(self) -> TMP_Text
fn get_caption_text(self) -> TMP_Text
get_captionText() overload
Sourcefn set_caption_text(self, value: impl Into<TMP_Text>)
fn set_caption_text(self, value: impl Into<TMP_Text>)
set_captionText(crate::tm_pro::tmp_text::TMP_Text) overload
Sourcefn get_caption_image(self) -> Image
fn get_caption_image(self) -> Image
get_captionImage() overload
Sourcefn set_caption_image(self, value: impl Into<Image>)
fn set_caption_image(self, value: impl Into<Image>)
set_captionImage(crate::unity_engine::ui::image::Image) overload
Sourcefn get_placeholder(self) -> Graphic
fn get_placeholder(self) -> Graphic
get_placeholder() overload
Sourcefn set_placeholder(self, value: impl Into<Graphic>)
fn set_placeholder(self, value: impl Into<Graphic>)
set_placeholder(crate::unity_engine::ui::graphic::Graphic) overload
Sourcefn get_item_text(self) -> TMP_Text
fn get_item_text(self) -> TMP_Text
get_itemText() overload
Sourcefn set_item_text(self, value: impl Into<TMP_Text>)
fn set_item_text(self, value: impl Into<TMP_Text>)
set_itemText(crate::tm_pro::tmp_text::TMP_Text) overload
Sourcefn get_item_image(self) -> Image
fn get_item_image(self) -> Image
get_itemImage() overload
Sourcefn set_item_image(self, value: impl Into<Image>)
fn set_item_image(self, value: impl Into<Image>)
set_itemImage(crate::unity_engine::ui::image::Image) overload
Sourcefn get_options(self) -> List_1<TMP_Dropdown_OptionData>
fn get_options(self) -> List_1<TMP_Dropdown_OptionData>
get_options() overload
Sourcefn set_options(self, value: impl Into<List_1<TMP_Dropdown_OptionData>>)
fn set_options(self, value: impl Into<List_1<TMP_Dropdown_OptionData>>)
set_options(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_dropdown::TMP_Dropdown_OptionData>) overload
Sourcefn get_on_value_changed(self) -> TMP_Dropdown_DropdownEvent
fn get_on_value_changed(self) -> TMP_Dropdown_DropdownEvent
get_onValueChanged() overload
Sourcefn set_on_value_changed(self, value: impl Into<TMP_Dropdown_DropdownEvent>)
fn set_on_value_changed(self, value: impl Into<TMP_Dropdown_DropdownEvent>)
set_onValueChanged(crate::tm_pro::tmp_dropdown::TMP_Dropdown_DropdownEvent) overload
Sourcefn get_alpha_fade_speed(self) -> f32
fn get_alpha_fade_speed(self) -> f32
get_alphaFadeSpeed() overload
Sourcefn set_alpha_fade_speed(self, value: impl Into<f32>)
fn set_alpha_fade_speed(self, value: impl Into<f32>)
set_alphaFadeSpeed(f32) overload
Sourcefn set_value_without_notify(self, input: impl Into<i32>)
fn set_value_without_notify(self, input: impl Into<i32>)
SetValueWithoutNotify(i32) overload
Sourcefn set_value_2(self, value: impl Into<i32>, send_callback: impl Into<bool>)
fn set_value_2(self, value: impl Into<i32>, send_callback: impl Into<bool>)
SetValue(i32, bool) overload
Sourcefn get_is_expanded(self) -> bool
fn get_is_expanded(self) -> bool
get_IsExpanded() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn refresh_shown_value(self)
fn refresh_shown_value(self)
RefreshShownValue() overload
Sourcefn add_options(self, options: impl Into<List_1<TMP_Dropdown_OptionData>>)
fn add_options(self, options: impl Into<List_1<TMP_Dropdown_OptionData>>)
AddOptions(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_dropdown::TMP_Dropdown_OptionData>) overload
Sourcefn add_options_2(self, options: impl Into<List_1<Il2CppString>>)
fn add_options_2(self, options: impl Into<List_1<Il2CppString>>)
AddOptions(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>) overload
Sourcefn add_options_3(self, options: impl Into<List_1<Sprite>>)
fn add_options_3(self, options: impl Into<List_1<Sprite>>)
AddOptions(crate::system::collections::generic::list_1::List_1<crate::unity_engine::sprite::Sprite>) overload
Sourcefn clear_options(self)
fn clear_options(self)
ClearOptions() overload
Sourcefn setup_template(self)
fn setup_template(self)
SetupTemplate() overload
Sourcefn on_pointer_click(self, event_data: impl Into<PointerEventData>)
fn on_pointer_click(self, event_data: impl Into<PointerEventData>)
OnPointerClick(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload
Sourcefn on_submit(self, event_data: impl Into<BaseEventData>)
fn on_submit(self, event_data: impl Into<BaseEventData>)
OnSubmit(crate::unity_engine::event_systems::baseeventdata::BaseEventData) overload
Sourcefn on_cancel(self, event_data: impl Into<BaseEventData>)
fn on_cancel(self, event_data: impl Into<BaseEventData>)
OnCancel(crate::unity_engine::event_systems::baseeventdata::BaseEventData) overload
Sourcefn create_blocker(self, root_canvas: impl Into<Canvas>) -> GameObject
fn create_blocker(self, root_canvas: impl Into<Canvas>) -> GameObject
CreateBlocker(crate::unity_engine::canvas::Canvas) overload
Sourcefn destroy_blocker(self, blocker: impl Into<GameObject>)
fn destroy_blocker(self, blocker: impl Into<GameObject>)
DestroyBlocker(crate::unity_engine::gameobject::GameObject) overload
Sourcefn create_dropdown_list(self, template: impl Into<GameObject>) -> GameObject
fn create_dropdown_list(self, template: impl Into<GameObject>) -> GameObject
CreateDropdownList(crate::unity_engine::gameobject::GameObject) overload
Sourcefn destroy_dropdown_list(self, dropdown_list: impl Into<GameObject>)
fn destroy_dropdown_list(self, dropdown_list: impl Into<GameObject>)
DestroyDropdownList(crate::unity_engine::gameobject::GameObject) overload
Sourcefn create_item(
self,
item_template: impl Into<TMP_Dropdown_DropdownItem>,
) -> TMP_Dropdown_DropdownItem
fn create_item( self, item_template: impl Into<TMP_Dropdown_DropdownItem>, ) -> TMP_Dropdown_DropdownItem
CreateItem(crate::tm_pro::tmp_dropdown::TMP_Dropdown_DropdownItem) overload
Sourcefn destroy_item(self, item: impl Into<TMP_Dropdown_DropdownItem>)
fn destroy_item(self, item: impl Into<TMP_Dropdown_DropdownItem>)
DestroyItem(crate::tm_pro::tmp_dropdown::TMP_Dropdown_DropdownItem) overload
Sourcefn add_item(
self,
data: impl Into<TMP_Dropdown_OptionData>,
selected: impl Into<bool>,
item_template: impl Into<TMP_Dropdown_DropdownItem>,
items: impl Into<List_1<TMP_Dropdown_DropdownItem>>,
) -> TMP_Dropdown_DropdownItem
fn add_item( self, data: impl Into<TMP_Dropdown_OptionData>, selected: impl Into<bool>, item_template: impl Into<TMP_Dropdown_DropdownItem>, items: impl Into<List_1<TMP_Dropdown_DropdownItem>>, ) -> TMP_Dropdown_DropdownItem
AddItem(crate::tm_pro::tmp_dropdown::TMP_Dropdown_OptionData, bool, crate::tm_pro::tmp_dropdown::TMP_Dropdown_DropdownItem, crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_dropdown::TMP_Dropdown_DropdownItem>) overload
Sourcefn alpha_fade_list(self, duration: impl Into<f32>, alpha: impl Into<f32>)
fn alpha_fade_list(self, duration: impl Into<f32>, alpha: impl Into<f32>)
AlphaFadeList(f32, f32) overload
Sourcefn alpha_fade_list_2(
self,
duration: impl Into<f32>,
start: impl Into<f32>,
end: impl Into<f32>,
)
fn alpha_fade_list_2( self, duration: impl Into<f32>, start: impl Into<f32>, end: impl Into<f32>, )
AlphaFadeList(f32, f32, f32) overload
Sourcefn delayed_destroy_dropdown_list(self, delay: impl Into<f32>) -> IEnumerator
fn delayed_destroy_dropdown_list(self, delay: impl Into<f32>) -> IEnumerator
DelayedDestroyDropdownList(f32) overload
Sourcefn immediate_destroy_dropdown_list(self)
fn immediate_destroy_dropdown_list(self)
ImmediateDestroyDropdownList() overload
Sourcefn on_select_item(self, toggle: impl Into<Toggle>)
fn on_select_item(self, toggle: impl Into<Toggle>)
OnSelectItem(crate::unity_engine::ui::toggle::Toggle) 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: ITMP_Dropdown> ITMP_DropdownMethods for __T
tm_pro-tmp_dropdown only.