Struct roblox::instance::TextButton [−][src]
pub struct TextButton<'a> {}Show 90 fields
pub font: Font, pub line_height: f32, pub localized_text: &'a str, pub max_visible_graphemes: i32, pub rich_text: bool, pub text: &'a str, pub text_bounds: Vector2, pub text_color3: Color3, pub text_fits: bool, pub text_scaled: bool, pub text_size: f32, pub text_stroke_color3: Color3, pub text_stroke_transparency: f32, pub text_transparency: f32, pub text_truncate: TextTruncate, pub text_wrapped: bool, pub text_x_alignment: TextXAlignment, pub text_y_alignment: TextYAlignment, pub auto_button_color: bool, pub modal: bool, pub selected: bool, pub style: ButtonStyle, pub active: bool, pub anchor_point: Vector2, pub automatic_size: AutomaticSize, pub background_color3: Color3, pub background_transparency: f32, pub border_color3: Color3, pub border_mode: BorderMode, pub border_size_pixel: i32, pub clips_descendants: bool, pub layout_order: i32, pub next_selection_down: Option<InstanceRef>, pub next_selection_left: Option<InstanceRef>, pub next_selection_right: Option<InstanceRef>, pub next_selection_up: Option<InstanceRef>, pub position: UDim2, pub rotation: f32, pub selectable: bool, pub selection_image_object: Option<InstanceRef>, pub size: UDim2, pub size_constraint: SizeConstraint, pub transparency: f32, pub visible: bool, pub z_index: i32, pub absolute_position: Vector2, pub absolute_rotation: f32, pub absolute_size: Vector2, pub auto_localize: bool, pub clipped_rect: Rect, pub is_not_occluded: bool, pub raw_rect2_d: Rect, pub root_localization_table: Option<InstanceRef>, pub total_group_scale: f32, 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 activated: RBXScriptSignal<(Option<InstanceRef>, i32)>, pub mouse_button1_click: RBXScriptSignal<()>, pub mouse_button1_down: RBXScriptSignal<(i32, i32)>, pub mouse_button1_up: RBXScriptSignal<(i32, i32)>, pub mouse_button2_click: RBXScriptSignal<()>, pub mouse_button2_down: RBXScriptSignal<(i32, i32)>, pub mouse_button2_up: RBXScriptSignal<(i32, i32)>, pub input_began: RBXScriptSignal<Option<InstanceRef>>, pub input_changed: RBXScriptSignal<Option<InstanceRef>>, pub input_ended: RBXScriptSignal<Option<InstanceRef>>, pub mouse_enter: RBXScriptSignal<(i32, i32)>, pub mouse_leave: RBXScriptSignal<(i32, i32)>, pub mouse_moved: RBXScriptSignal<(i32, i32)>, pub mouse_wheel_backward: RBXScriptSignal<(i32, i32)>, pub mouse_wheel_forward: RBXScriptSignal<(i32, i32)>, pub selection_gained: RBXScriptSignal<()>, pub selection_lost: RBXScriptSignal<()>, pub touch_long_press: RBXScriptSignal<(Array<Variant<'a, ()>>, UserInputState)>, pub touch_pan: RBXScriptSignal<(Array<Variant<'a, ()>>, Vector2, Vector2, UserInputState)>, pub touch_pinch: RBXScriptSignal<(Array<Variant<'a, ()>>, f32, f32, UserInputState)>, pub touch_rotate: RBXScriptSignal<(Array<Variant<'a, ()>>, f32, f32, UserInputState)>, pub touch_swipe: RBXScriptSignal<(SwipeDirection, i32)>, pub touch_tap: RBXScriptSignal<Array<Variant<'a, ()>>>, 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 TextButton Instance Class
Fields
font: Font
line_height: f32
localized_text: &'a str
max_visible_graphemes: i32
rich_text: bool
text: &'a str
text_bounds: Vector2
text_color3: Color3
text_fits: bool
text_scaled: bool
text_size: f32
text_stroke_color3: Color3
text_stroke_transparency: f32
text_transparency: f32
text_truncate: TextTruncate
text_wrapped: bool
text_x_alignment: TextXAlignment
text_y_alignment: TextYAlignment
Inherited from GuiButton
modal: bool
Inherited from GuiButton
selected: bool
Inherited from GuiButton
style: ButtonStyle
Inherited from GuiButton
active: bool
Inherited from GuiObject
anchor_point: Vector2
Inherited from GuiObject
automatic_size: AutomaticSize
Inherited from GuiObject
background_color3: Color3
Inherited from GuiObject
background_transparency: f32
Inherited from GuiObject
border_color3: Color3
Inherited from GuiObject
border_mode: BorderMode
Inherited from GuiObject
border_size_pixel: i32
Inherited from GuiObject
clips_descendants: bool
Inherited from GuiObject
layout_order: i32
Inherited from GuiObject
next_selection_down: Option<InstanceRef>
Inherited from GuiObject
next_selection_left: Option<InstanceRef>
Inherited from GuiObject
next_selection_right: Option<InstanceRef>
Inherited from GuiObject
next_selection_up: Option<InstanceRef>
Inherited from GuiObject
position: UDim2
Inherited from GuiObject
rotation: f32
Inherited from GuiObject
selectable: bool
Inherited from GuiObject
selection_image_object: Option<InstanceRef>
Inherited from GuiObject
size: UDim2
Inherited from GuiObject
size_constraint: SizeConstraint
Inherited from GuiObject
transparency: f32
Inherited from GuiObject
visible: bool
Inherited from GuiObject
z_index: i32
Inherited from GuiObject
absolute_position: Vector2
Inherited from GuiBase2d
absolute_rotation: f32
Inherited from GuiBase2d
absolute_size: Vector2
Inherited from GuiBase2d
auto_localize: bool
Inherited from GuiBase2d
clipped_rect: Rect
Inherited from GuiBase2d
is_not_occluded: bool
Inherited from GuiBase2d
raw_rect2_d: Rect
Inherited from GuiBase2d
root_localization_table: Option<InstanceRef>
Inherited from GuiBase2d
total_group_scale: f32
Inherited from GuiBase2d
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
activated: RBXScriptSignal<(Option<InstanceRef>, i32)>
Inherited from GuiButton
Inherited from GuiButton
Inherited from GuiButton
Inherited from GuiButton
Inherited from GuiButton
Inherited from GuiButton
Inherited from GuiButton
input_began: RBXScriptSignal<Option<InstanceRef>>
Inherited from GuiObject
input_changed: RBXScriptSignal<Option<InstanceRef>>
Inherited from GuiObject
input_ended: RBXScriptSignal<Option<InstanceRef>>
Inherited from GuiObject
mouse_enter: RBXScriptSignal<(i32, i32)>
Inherited from GuiObject
mouse_leave: RBXScriptSignal<(i32, i32)>
Inherited from GuiObject
mouse_moved: RBXScriptSignal<(i32, i32)>
Inherited from GuiObject
mouse_wheel_backward: RBXScriptSignal<(i32, i32)>
Inherited from GuiObject
mouse_wheel_forward: RBXScriptSignal<(i32, i32)>
Inherited from GuiObject
selection_gained: RBXScriptSignal<()>
Inherited from GuiObject
selection_lost: RBXScriptSignal<()>
Inherited from GuiObject
touch_long_press: RBXScriptSignal<(Array<Variant<'a, ()>>, UserInputState)>
Inherited from GuiObject
touch_pan: RBXScriptSignal<(Array<Variant<'a, ()>>, Vector2, Vector2, UserInputState)>
Inherited from GuiObject
touch_pinch: RBXScriptSignal<(Array<Variant<'a, ()>>, f32, f32, UserInputState)>
Inherited from GuiObject
touch_rotate: RBXScriptSignal<(Array<Variant<'a, ()>>, f32, f32, UserInputState)>
Inherited from GuiObject
touch_swipe: RBXScriptSignal<(SwipeDirection, i32)>
Inherited from GuiObject
touch_tap: RBXScriptSignal<Array<Variant<'a, ()>>>
Inherited from GuiObject
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
Creates a new TextButton object.
Equivalent to Instance.new(“TextButton”) in Luau.
pub fn tween_position(
&self,
end_position: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
pub fn tween_position(
&self,
end_position: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
Inherited from GuiObject
pub fn tween_size(
&self,
end_size: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
pub fn tween_size(
&self,
end_size: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
Inherited from GuiObject
pub fn tween_size_and_position(
&self,
end_size: UDim2,
end_position: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
pub fn tween_size_and_position(
&self,
end_size: UDim2,
end_position: UDim2,
easing_direction: EasingDirection,
easing_style: EasingStyle,
time: f32,
override: bool,
callback: &'a dyn Fn(&'static [Variant<'a, ()>]) -> Array<Variant<'a, ()>>
) -> bool
Inherited from GuiObject
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 TextButton<'a>
impl<'a> Send for TextButton<'a>
impl<'a> Sync for TextButton<'a>
impl<'a> Unpin for TextButton<'a>
impl<'a> UnwindSafe for TextButton<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more