pub struct PlayerTextLabel {
pub player: Player,
/* private fields */
}Fields§
§player: PlayerImplementations§
Source§impl PlayerTextLabel
impl PlayerTextLabel
pub fn get_handle(&self) -> *const c_void
pub fn new(handle: *const c_void, player: Player) -> PlayerTextLabel
Sourcepub fn update_text(&self, colour: Colour, text: &str) -> bool
pub fn update_text(&self, colour: Colour, text: &str) -> bool
Updates a player 3D Text Label’s text and color.
pub fn set_draw_distance(&self, distance: f32) -> bool
Sourcepub fn get_draw_distance(&self) -> f32
pub fn get_draw_distance(&self) -> f32
Gets the player’s 3D text label draw distance.
pub fn set_los(&self, status: bool) -> bool
Sourcepub fn get_attached_data(&self) -> TextLabelAttachmentData
pub fn get_attached_data(&self) -> TextLabelAttachmentData
Gets the player’s 3D text label attached data.
pub fn get_id(&self) -> i32
pub fn get_from_id(id: i32, player: &Player) -> Option<PlayerTextLabel>
Trait Implementations§
Source§impl Clone for PlayerTextLabel
impl Clone for PlayerTextLabel
Source§fn clone(&self) -> PlayerTextLabel
fn clone(&self) -> PlayerTextLabel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlayerTextLabel
Auto Trait Implementations§
impl Freeze for PlayerTextLabel
impl RefUnwindSafe for PlayerTextLabel
impl !Send for PlayerTextLabel
impl !Sync for PlayerTextLabel
impl Unpin for PlayerTextLabel
impl UnwindSafe for PlayerTextLabel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more