Struct AddonApi

Source
#[repr(C)]
pub struct AddonApi {
Show 19 fields pub swap_chain: IDXGISwapChain, pub imgui_context: *mut ImGuiContext, pub imgui_malloc: Option<ImguiMalloc>, pub imgui_free: Option<ImguiFree>, pub renderer: RendererApi, pub request_update: RawRequestUpdate, pub log: RawLog, pub ui: UiApi, pub path: PathApi, pub min_hook: MinHookApi, pub event: EventApi, pub wnd_proc: WndProcApi, pub input_binds: InputBindsApi, pub game_bind: GameBindApi, pub data_link: DataLinkApi, pub texture: TextureApi, pub quick_access: QuickAccessApi, pub localization: LocalizationApi, pub font: FontApi,
}
Expand description

Nexus addon API (version 6).

Fields§

§swap_chain: IDXGISwapChain

DirectX swap chain.

§imgui_context: *mut ImGuiContext

ImGui context.

§imgui_malloc: Option<ImguiMalloc>

ImGui malloc function.

§imgui_free: Option<ImguiFree>

ImGui free function.

§renderer: RendererApi

Rendering API.

§request_update: RawRequestUpdate

Downloads the addon available at remote without checking its version.

§log: RawLog

Logs a message to the log window and log file.

Supports custom coloring for addon window messages, for example <c=#FF0000>this text is red</c>.

§ui: UiApi

Ui API.

§path: PathApi

Paths API.

§min_hook: MinHookApi

MinHook API.

§event: EventApi

Event API.

§wnd_proc: WndProcApi

WNDPROC API.

§input_binds: InputBindsApi

Input keybinds API.

§game_bind: GameBindApi

Game keybinds API.

§data_link: DataLinkApi

Data Link API.

§texture: TextureApi

Texture Api.

§quick_access: QuickAccessApi

Quick Access API.

§localization: LocalizationApi

Localization API.

§font: FontApi

Font API.

Implementations§

Source§

impl AddonApi

Source

pub const VERSION: i32 = 6i32

Nexus Addon API version.

Source

pub fn get_d3d11_device(&self) -> Option<ID3D11Device>

Retrieves the DirectX 11 device associated with the swap chain.

Source§

impl AddonApi

Source

pub fn get() -> &'static Self

Returns the Nexus AddonApi instance.

Panics if called before initialization.

Trait Implementations§

Source§

impl Clone for AddonApi

Source§

fn clone(&self) -> AddonApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AddonApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for AddonApi

Source§

impl Sync for AddonApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.