#[repr(C)]
pub struct ArcDpsExport { pub size: usize, pub sig: u32, pub imgui_version: u32, pub out_name: *const c_char, pub out_build: *const c_char, pub wnd_nofilter: Option<RawWndProcCallback>, pub combat: Option<RawCombatCallback>, pub imgui: Option<RawImguiCallback>, pub options_end: Option<RawOptionsCallback>, pub combat_local: Option<RawCombatCallback>, pub wnd_filter: Option<RawWndProcCallback>, pub options_windows: Option<RawOptionsWindowsCallback>, }
Expand description

Exported struct for ArcDPS plugins.

Fields§

§size: usize

Size of exports table.

§sig: u32

Unique plugin signature.

Pick a random number that is not used by other modules.

§imgui_version: u32

ImGui version number.

Set to 18000 if you do not use ImGui (as of 2021-02-02).

§out_name: *const c_char

Plugin name string.

§out_build: *const c_char

Plugin build (version) string.

§wnd_nofilter: Option<RawWndProcCallback>

WndProc callback.

Return is assigned to uMsg (return zero to not be processed by ArcDPS or game).

§combat: Option<RawCombatCallback>

Combat callback.

May be called asynchronously, use id to keep track of order. First event id will be 2. Return is ignored.

§imgui: Option<RawImguiCallback>

ImGui callback.

§options_end: Option<RawOptionsCallback>

Options callback.

For a plugin options tab.

§combat_local: Option<RawCombatCallback>

Local combat callback.

Like combat (area) but from chat log.

§wnd_filter: Option<RawWndProcCallback>

Filtered WndProc callback.

Like wnd_nofilter but input fitlered using modifiers.

§options_windows: Option<RawOptionsWindowsCallback>

Options windows callback.

Called once per window option checkbox in settings, with null at the end. Non-zero return disables ArcDPS drawing that checkbox.

Trait Implementations§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.