#[repr(C)]pub struct TextDrawHandlerVTable {
pub on_player_click_text_draw: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer, *mut ITextDraw),
pub on_player_click_player_text_draw: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer, *mut IPlayerTextDraw),
pub on_player_cancel_text_draw_selection: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer) -> bool,
pub on_player_cancel_player_text_draw_selection: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer) -> bool,
}Expand description
TextDrawEventHandler in Server/Components/TextDraws/textdraws.hpp.
Fields§
§on_player_click_text_draw: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer, *mut ITextDraw)void onPlayerClickTextDraw(IPlayer &, ITextDraw &).
on_player_click_player_text_draw: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer, *mut IPlayerTextDraw)void onPlayerClickPlayerTextDraw(IPlayer &, IPlayerTextDraw &).
on_player_cancel_text_draw_selection: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer) -> boolbool onPlayerCancelTextDrawSelection(IPlayer &).
on_player_cancel_player_text_draw_selection: unsafe extern "thiscall" fn(*mut TextDrawHandler, *mut IPlayer) -> boolbool onPlayerCancelPlayerTextDrawSelection(IPlayer &).
Implementations§
Source§impl TextDrawHandlerVTable
impl TextDrawHandlerVTable
Sourcepub const DEFAULT: TextDrawHandlerVTable
pub const DEFAULT: TextDrawHandlerVTable
Every entry doing what the C++ handler’s own body does.
Trait Implementations§
Source§impl Clone for TextDrawHandlerVTable
impl Clone for TextDrawHandlerVTable
Source§fn clone(&self) -> TextDrawHandlerVTable
fn clone(&self) -> TextDrawHandlerVTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextDrawHandlerVTable
Auto Trait Implementations§
impl Freeze for TextDrawHandlerVTable
impl RefUnwindSafe for TextDrawHandlerVTable
impl Send for TextDrawHandlerVTable
impl Sync for TextDrawHandlerVTable
impl Unpin for TextDrawHandlerVTable
impl UnsafeUnpin for TextDrawHandlerVTable
impl UnwindSafe for TextDrawHandlerVTable
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