Skip to main content

IDropdownMethods

Trait IDropdownMethods 

Source
pub trait IDropdownMethods: IDropdown {
Show 48 methods // Provided methods fn get_template(self) -> RectTransform { ... } fn set_template(self, value: impl Into<RectTransform>) { ... } fn get_caption_text(self) -> Text { ... } fn set_caption_text(self, value: impl Into<Text>) { ... } fn get_caption_image(self) -> Image { ... } fn set_caption_image(self, value: impl Into<Image>) { ... } fn get_item_text(self) -> Text { ... } fn set_item_text(self, value: impl Into<Text>) { ... } fn get_item_image(self) -> Image { ... } fn set_item_image(self, value: impl Into<Image>) { ... } fn get_options(self) -> List_1<Dropdown_OptionData> { ... } fn set_options(self, value: impl Into<List_1<Dropdown_OptionData>>) { ... } fn get_on_value_changed(self) -> Dropdown_DropdownEvent { ... } fn set_on_value_changed(self, value: impl Into<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(self, value: impl Into<i32>, send_callback: impl Into<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<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<Dropdown_DropdownItem>, ) -> Dropdown_DropdownItem { ... } fn destroy_item(self, item: impl Into<Dropdown_DropdownItem>) { ... } fn add_item( self, data: impl Into<Dropdown_OptionData>, selected: impl Into<bool>, item_template: impl Into<Dropdown_DropdownItem>, items: impl Into<List_1<Dropdown_DropdownItem>>, ) -> 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§

Source

fn get_template(self) -> RectTransform

get_template() overload

Source

fn set_template(self, value: impl Into<RectTransform>)

set_template(crate::unity_engine::recttransform::RectTransform) overload

Source

fn get_caption_text(self) -> Text

get_captionText() overload

Source

fn set_caption_text(self, value: impl Into<Text>)

set_captionText(crate::unity_engine::ui::text::Text) overload

Source

fn get_caption_image(self) -> Image

get_captionImage() overload

Source

fn set_caption_image(self, value: impl Into<Image>)

set_captionImage(crate::unity_engine::ui::image::Image) overload

Source

fn get_item_text(self) -> Text

get_itemText() overload

Source

fn set_item_text(self, value: impl Into<Text>)

set_itemText(crate::unity_engine::ui::text::Text) overload

Source

fn get_item_image(self) -> Image

get_itemImage() overload

Source

fn set_item_image(self, value: impl Into<Image>)

set_itemImage(crate::unity_engine::ui::image::Image) overload

Source

fn get_options(self) -> List_1<Dropdown_OptionData>

get_options() overload

Source

fn set_options(self, value: impl Into<List_1<Dropdown_OptionData>>)

set_options(crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::dropdown::Dropdown_OptionData>) overload

Source

fn get_on_value_changed(self) -> Dropdown_DropdownEvent

get_onValueChanged() overload

Source

fn set_on_value_changed(self, value: impl Into<Dropdown_DropdownEvent>)

set_onValueChanged(crate::unity_engine::ui::dropdown::Dropdown_DropdownEvent) overload

Source

fn get_alpha_fade_speed(self) -> f32

get_alphaFadeSpeed() overload

Source

fn set_alpha_fade_speed(self, value: impl Into<f32>)

set_alphaFadeSpeed(f32) overload

Source

fn get_value(self) -> i32

get_value() overload

Source

fn set_value(self, value: impl Into<i32>)

set_value(i32) overload

Source

fn set_value_without_notify(self, input: impl Into<i32>)

SetValueWithoutNotify(i32) overload

Source

fn set(self, value: impl Into<i32>, send_callback: impl Into<bool>)

Set(i32, bool) overload

Source

fn ctor(self)

.ctor() overload

Source

fn awake(self)

Awake() overload

Source

fn start(self)

Start() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn refresh_shown_value(self)

RefreshShownValue() overload

Source

fn add_options(self, options: impl Into<List_1<Dropdown_OptionData>>)

AddOptions(crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::dropdown::Dropdown_OptionData>) overload

Source

fn add_options_2(self, options: impl Into<List_1<Il2CppString>>)

AddOptions(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>) overload

Source

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

Source

fn clear_options(self)

ClearOptions() overload

Source

fn setup_template(self)

SetupTemplate() overload

Source

fn on_pointer_click(self, event_data: impl Into<PointerEventData>)

OnPointerClick(crate::unity_engine::event_systems::pointereventdata::PointerEventData) overload

Source

fn on_submit(self, event_data: impl Into<BaseEventData>)

OnSubmit(crate::unity_engine::event_systems::baseeventdata::BaseEventData) overload

Source

fn on_cancel(self, event_data: impl Into<BaseEventData>)

OnCancel(crate::unity_engine::event_systems::baseeventdata::BaseEventData) overload

Source

fn show(self)

Show() overload

Source

fn create_blocker(self, root_canvas: impl Into<Canvas>) -> GameObject

CreateBlocker(crate::unity_engine::canvas::Canvas) overload

Source

fn destroy_blocker(self, blocker: impl Into<GameObject>)

DestroyBlocker(crate::unity_engine::gameobject::GameObject) overload

Source

fn create_dropdown_list(self, template: impl Into<GameObject>) -> GameObject

CreateDropdownList(crate::unity_engine::gameobject::GameObject) overload

Source

fn destroy_dropdown_list(self, dropdown_list: impl Into<GameObject>)

DestroyDropdownList(crate::unity_engine::gameobject::GameObject) overload

Source

fn create_item( self, item_template: impl Into<Dropdown_DropdownItem>, ) -> Dropdown_DropdownItem

CreateItem(crate::unity_engine::ui::dropdown::Dropdown_DropdownItem) overload

Source

fn destroy_item(self, item: impl Into<Dropdown_DropdownItem>)

DestroyItem(crate::unity_engine::ui::dropdown::Dropdown_DropdownItem) overload

Source

fn add_item( self, data: impl Into<Dropdown_OptionData>, selected: impl Into<bool>, item_template: impl Into<Dropdown_DropdownItem>, items: impl Into<List_1<Dropdown_DropdownItem>>, ) -> Dropdown_DropdownItem

AddItem(crate::unity_engine::ui::dropdown::Dropdown_OptionData, bool, crate::unity_engine::ui::dropdown::Dropdown_DropdownItem, crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::dropdown::Dropdown_DropdownItem>) overload

Source

fn alpha_fade_list(self, duration: impl Into<f32>, alpha: impl Into<f32>)

AlphaFadeList(f32, f32) overload

Source

fn alpha_fade_list_2( self, duration: impl Into<f32>, start: impl Into<f32>, end: impl Into<f32>, )

AlphaFadeList(f32, f32, f32) overload

Source

fn set_alpha(self, alpha: impl Into<f32>)

SetAlpha(f32) overload

Source

fn hide(self)

Hide() overload

Source

fn delayed_destroy_dropdown_list(self, delay: impl Into<f32>) -> IEnumerator

DelayedDestroyDropdownList(f32) overload

Source

fn immediate_destroy_dropdown_list(self)

ImmediateDestroyDropdownList() overload

Source

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§

Source§

impl<__T: IDropdown> IDropdownMethods for __T

Available on crate feature unity_engine-ui-dropdown only.