pub struct Menu { /* private fields */ }Implementations§
Source§impl Menu
impl Menu
pub fn get_handle(&self) -> *const c_void
pub fn new(handle: *const c_void) -> Menu
Sourcepub fn create(
title: &str,
columns: u32,
position: Vector2,
column1_widthh: f32,
column2_width: f32,
) -> Option<Menu>
pub fn create( title: &str, columns: u32, position: Vector2, column1_widthh: f32, column2_width: f32, ) -> Option<Menu>
Creates a menu
Sourcepub fn set_column_header(&self, column: u8, header_title: &str) -> bool
pub fn set_column_header(&self, column: u8, header_title: &str) -> bool
Sets the caption of a column in a menu.
Sourcepub fn show_for_player(&self, player: &Player) -> bool
pub fn show_for_player(&self, player: &Player) -> bool
Shows the menu to a player
Sourcepub fn hide_for_player(&self, player: &Player) -> bool
pub fn hide_for_player(&self, player: &Player) -> bool
Hides the menu from a player
Sourcepub fn disable_row(&self, row: u8) -> bool
pub fn disable_row(&self, row: u8) -> bool
Disable a particular row in menu
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Checks if a menu disabled or not
Sourcepub fn is_row_disabled(&self, row: i32) -> bool
pub fn is_row_disabled(&self, row: i32) -> bool
Checks if a row in menu is disabled or not
Sourcepub fn get_columns(&self) -> i32
pub fn get_columns(&self) -> i32
Get the number of active columns.
Sourcepub fn get_column_width(&self) -> (f32, f32)
pub fn get_column_width(&self) -> (f32, f32)
Get the column width of menu
Sourcepub fn get_column_header(&self, column: i32) -> String
pub fn get_column_header(&self, column: i32) -> String
Get caption of the menu
Auto Trait Implementations§
impl Freeze for Menu
impl RefUnwindSafe for Menu
impl !Send for Menu
impl !Sync for Menu
impl Unpin for Menu
impl UnwindSafe for Menu
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