Struct roblox::instance::ContextActionService [−][src]
pub struct ContextActionService<'a> {}Show 19 fields
pub archivable: bool, pub class_name: &'a str, pub name: &'a str, pub parent: Option<InstanceRef>, pub roblox_locked: bool, pub source_asset_id: i64, pub bound_action_added: RBXScriptSignal<(&'a str, bool, Dictionary, bool)>, pub bound_action_changed: RBXScriptSignal<(&'a str, &'a str, Dictionary)>, pub bound_action_removed: RBXScriptSignal<(&'a str, Dictionary, bool)>, pub get_action_button_event: RBXScriptSignal<&'a str>, pub local_tool_equipped: RBXScriptSignal<Option<InstanceRef>>, pub local_tool_unequipped: RBXScriptSignal<Option<InstanceRef>>, pub ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>, pub attribute_changed: RBXScriptSignal<&'a str>, pub changed: RBXScriptSignal<&'a str>, pub child_added: RBXScriptSignal<Option<InstanceRef>>, pub child_removed: RBXScriptSignal<Option<InstanceRef>>, pub descendant_added: RBXScriptSignal<Option<InstanceRef>>, pub descendant_removing: RBXScriptSignal<Option<InstanceRef>>,
Expand description
The ContextActionService Instance Class
Fields
archivable: bool
Inherited from Instance
class_name: &'a str
Inherited from Instance
name: &'a str
Inherited from Instance
parent: Option<InstanceRef>
Inherited from Instance
roblox_locked: bool
Inherited from Instance
source_asset_id: i64
Inherited from Instance
bound_action_added: RBXScriptSignal<(&'a str, bool, Dictionary, bool)>
bound_action_changed: RBXScriptSignal<(&'a str, &'a str, Dictionary)>
bound_action_removed: RBXScriptSignal<(&'a str, Dictionary, bool)>
local_tool_equipped: RBXScriptSignal<Option<InstanceRef>>
local_tool_unequipped: RBXScriptSignal<Option<InstanceRef>>
ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>
Inherited from Instance
attribute_changed: RBXScriptSignal<&'a str>
Inherited from Instance
changed: RBXScriptSignal<&'a str>
Inherited from Instance
child_added: RBXScriptSignal<Option<InstanceRef>>
Inherited from Instance
child_removed: RBXScriptSignal<Option<InstanceRef>>
Inherited from Instance
descendant_added: RBXScriptSignal<Option<InstanceRef>>
Inherited from Instance
descendant_removing: RBXScriptSignal<Option<InstanceRef>>
Inherited from Instance
Implementations
pub fn bind_action(
&self,
action_name: &'a str,
function_to_bind: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>,
create_touch_button: bool,
input_types: Array<Variant<'a, ()>>
)
pub fn bind_action_at_priority(
&self,
action_name: &'a str,
function_to_bind: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>,
create_touch_button: bool,
priority_level: i32,
input_types: Array<Variant<'a, ()>>
)
pub fn bind_activate(
&self,
user_input_type_for_activation: UserInputType,
key_code_for_activation: KeyCode
)
pub fn bind_core_action(
&self,
action_name: &'a str,
function_to_bind: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>,
create_touch_button: bool,
input_types: Array<Variant<'a, ()>>
)
pub fn bind_core_action_at_priority(
&self,
action_name: &'a str,
function_to_bind: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>,
create_touch_button: bool,
priority_level: i32,
input_types: Array<Variant<'a, ()>>
)
pub fn call_function(
&self,
action_name: &'a str,
state: UserInputState,
input_object: Option<InstanceRef>
) -> Array<Variant<'a, ()>>
pub fn unbind_activate(
&self,
user_input_type_for_activation: UserInputType,
key_code_for_activation: KeyCode
)
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContextActionService<'a>
impl<'a> Send for ContextActionService<'a>
impl<'a> Sync for ContextActionService<'a>
impl<'a> Unpin for ContextActionService<'a>
impl<'a> UnwindSafe for ContextActionService<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more