pub trait IToggleGroupMethods: IToggleGroup {
Show 14 methods
// Provided methods
fn get_allow_switch_off(self) -> bool { ... }
fn set_allow_switch_off(self, value: impl Into<bool>) { ... }
fn ctor(self) { ... }
fn start(self) { ... }
fn on_enable(self) { ... }
fn validate_toggle_is_in_group(self, toggle: impl Into<Toggle>) { ... }
fn notify_toggle_on(
self,
toggle: impl Into<Toggle>,
send_callback: impl Into<bool>,
) { ... }
fn unregister_toggle(self, toggle: impl Into<Toggle>) { ... }
fn register_toggle(self, toggle: impl Into<Toggle>) { ... }
fn ensure_valid_state(self) { ... }
fn any_toggles_on(self) -> bool { ... }
fn active_toggles(self) -> IEnumerable_1<Toggle> { ... }
fn get_first_active_toggle(self) -> Toggle { ... }
fn set_all_toggles_off(self, send_callback: impl Into<bool>) { ... }
}Provided Methods§
Sourcefn get_allow_switch_off(self) -> bool
fn get_allow_switch_off(self) -> bool
get_allowSwitchOff() overload
Sourcefn set_allow_switch_off(self, value: impl Into<bool>)
fn set_allow_switch_off(self, value: impl Into<bool>)
set_allowSwitchOff(bool) overload
Sourcefn validate_toggle_is_in_group(self, toggle: impl Into<Toggle>)
fn validate_toggle_is_in_group(self, toggle: impl Into<Toggle>)
ValidateToggleIsInGroup(crate::unity_engine::ui::toggle::Toggle) overload
Sourcefn notify_toggle_on(
self,
toggle: impl Into<Toggle>,
send_callback: impl Into<bool>,
)
fn notify_toggle_on( self, toggle: impl Into<Toggle>, send_callback: impl Into<bool>, )
NotifyToggleOn(crate::unity_engine::ui::toggle::Toggle, bool) overload
Sourcefn unregister_toggle(self, toggle: impl Into<Toggle>)
fn unregister_toggle(self, toggle: impl Into<Toggle>)
UnregisterToggle(crate::unity_engine::ui::toggle::Toggle) overload
Sourcefn register_toggle(self, toggle: impl Into<Toggle>)
fn register_toggle(self, toggle: impl Into<Toggle>)
RegisterToggle(crate::unity_engine::ui::toggle::Toggle) overload
Sourcefn ensure_valid_state(self)
fn ensure_valid_state(self)
EnsureValidState() overload
Sourcefn any_toggles_on(self) -> bool
fn any_toggles_on(self) -> bool
AnyTogglesOn() overload
Sourcefn active_toggles(self) -> IEnumerable_1<Toggle>
fn active_toggles(self) -> IEnumerable_1<Toggle>
ActiveToggles() overload
Sourcefn get_first_active_toggle(self) -> Toggle
fn get_first_active_toggle(self) -> Toggle
GetFirstActiveToggle() overload
Sourcefn set_all_toggles_off(self, send_callback: impl Into<bool>)
fn set_all_toggles_off(self, send_callback: impl Into<bool>)
SetAllTogglesOff(bool) 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: IToggleGroup> IToggleGroupMethods for __T
Available on crate feature
unity_engine-ui-togglegroup only.