#[repr(C)]pub struct HostApiVTable {Show 27 fields
pub context: u64,
pub get_snapshot: extern "C" fn(context: u64) -> HostSnapshotFFI,
pub read_region: extern "C" fn(context: u64, file_id: i32, level: u32, x: i64, y: i64, width: u32, height: u32) -> RResult<RVec<u8>, RString>,
pub open_file: extern "C" fn(context: u64, path: RString) -> RResult<(), RString>,
pub set_active_viewport: extern "C" fn(context: u64, center_x: f64, center_y: f64, zoom: f64) -> RResult<(), RString>,
pub fit_active_viewport: extern "C" fn(context: u64) -> RResult<(), RString>,
pub frame_active_rect: extern "C" fn(context: u64, x: f64, y: f64, width: f64, height: f64) -> RResult<(), RString>,
pub cycle_focused_pane: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>,
pub cycle_active_tab: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>,
pub toggle_series_bar: extern "C" fn(context: u64) -> RResult<(), RString>,
pub cycle_series_selection: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>,
pub activate_selected_series_entry: extern "C" fn(context: u64) -> RResult<(), RString>,
pub set_active_tool: extern "C" fn(context: u64, tool: HostToolModeFFI) -> RResult<(), RString>,
pub request_render: extern "C" fn(context: u64) -> RResult<(), RString>,
pub set_toolbar_button_active: extern "C" fn(context: u64, button_id: RString, active: bool) -> RResult<(), RString>,
pub set_hud_toolbar_button_active: extern "C" fn(context: u64, button_id: RString, active: bool) -> RResult<(), RString>,
pub show_sidebar: extern "C" fn(context: u64, button_id: RString, width_px: u32, ui_path: RString, component: RString) -> RResult<(), RString>,
pub refresh_sidebar: extern "C" fn(context: u64) -> RResult<(), RString>,
pub hide_sidebar: extern "C" fn(context: u64) -> RResult<(), RString>,
pub show_confirmation_dialog: extern "C" fn(context: u64, request: ConfirmationDialogRequestFFI) -> RResult<(), RString>,
pub show_modal_dialog: extern "C" fn(context: u64, request: ModalDialogRequestFFI) -> RResult<(), RString>,
pub hide_modal_dialog: extern "C" fn(context: u64) -> RResult<(), RString>,
pub set_undo_redo_state: extern "C" fn(context: u64, state: PluginUndoRedoStateFFI) -> RResult<(), RString>,
pub open_file_dialog: extern "C" fn(context: u64, filter_name: RString, extension: RString) -> RResult<RString, RString>,
pub save_file_dialog: extern "C" fn(context: u64, default_file_name: RString, filter_name: RString, extension: RString) -> RResult<RString, RString>,
pub log_message: extern "C" fn(context: u64, level: HostLogLevelFFI, message: RString),
pub get_level_info: extern "C" fn(context: u64, file_id: i32) -> RResult<RVec<LevelInfoFFI>, RString>,
}Fields§
§context: u64§get_snapshot: extern "C" fn(context: u64) -> HostSnapshotFFI§read_region: extern "C" fn(context: u64, file_id: i32, level: u32, x: i64, y: i64, width: u32, height: u32) -> RResult<RVec<u8>, RString>§open_file: extern "C" fn(context: u64, path: RString) -> RResult<(), RString>§set_active_viewport: extern "C" fn(context: u64, center_x: f64, center_y: f64, zoom: f64) -> RResult<(), RString>§fit_active_viewport: extern "C" fn(context: u64) -> RResult<(), RString>§frame_active_rect: extern "C" fn(context: u64, x: f64, y: f64, width: f64, height: f64) -> RResult<(), RString>§cycle_focused_pane: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>§cycle_active_tab: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>§toggle_series_bar: extern "C" fn(context: u64) -> RResult<(), RString>§cycle_series_selection: extern "C" fn(context: u64, offset: i32) -> RResult<(), RString>§activate_selected_series_entry: extern "C" fn(context: u64) -> RResult<(), RString>§set_active_tool: extern "C" fn(context: u64, tool: HostToolModeFFI) -> RResult<(), RString>§request_render: extern "C" fn(context: u64) -> RResult<(), RString>§show_confirmation_dialog: extern "C" fn(context: u64, request: ConfirmationDialogRequestFFI) -> RResult<(), RString>§show_modal_dialog: extern "C" fn(context: u64, request: ModalDialogRequestFFI) -> RResult<(), RString>§hide_modal_dialog: extern "C" fn(context: u64) -> RResult<(), RString>§set_undo_redo_state: extern "C" fn(context: u64, state: PluginUndoRedoStateFFI) -> RResult<(), RString>§open_file_dialog: extern "C" fn(context: u64, filter_name: RString, extension: RString) -> RResult<RString, RString>§save_file_dialog: extern "C" fn(context: u64, default_file_name: RString, filter_name: RString, extension: RString) -> RResult<RString, RString>§log_message: extern "C" fn(context: u64, level: HostLogLevelFFI, message: RString)§get_level_info: extern "C" fn(context: u64, file_id: i32) -> RResult<RVec<LevelInfoFFI>, RString>Every pyramid level of an open file, in level order, so a plugin can
pick a level to read from instead of guessing the downsample factors.
OpenFileInfoFFI::level_count is the length of what this returns.
Trait Implementations§
Source§impl Clone for HostApiVTable
impl Clone for HostApiVTable
impl Copy for HostApiVTable
Source§impl GetStaticEquivalent_ for HostApiVTable
impl GetStaticEquivalent_ for HostApiVTable
Source§type StaticEquivalent = _static_HostApiVTable
type StaticEquivalent = _static_HostApiVTable
The
'static equivalent of SelfSource§impl StableAbi for HostApiVTable
impl StableAbi for HostApiVTable
Source§const LAYOUT: &'static TypeLayout
const LAYOUT: &'static TypeLayout
The layout of the type provided by implementors.
Source§type IsNonZeroType = False
type IsNonZeroType = False
Whether this type has a single invalid bit-pattern. Read more
Source§const ABI_CONSTS: AbiConsts
const ABI_CONSTS: AbiConsts
const-equivalents of the associated types.Auto Trait Implementations§
impl Forget for HostApiVTable
impl Freeze for HostApiVTable
impl Move for HostApiVTable
impl RefUnwindSafe for HostApiVTable
impl Send for HostApiVTable
impl Sync for HostApiVTable
impl Unpin for HostApiVTable
impl UnsafeUnpin for HostApiVTable
impl UnwindSafe for HostApiVTable
Blanket Implementations§
Source§impl<T> AlignerFor<1> for T
impl<T> AlignerFor<1> for T
Source§impl<T> AlignerFor<2> for T
impl<T> AlignerFor<2> for T
Source§impl<T> AlignerFor<4> for T
impl<T> AlignerFor<4> for T
Source§impl<T> AlignerFor<8> for T
impl<T> AlignerFor<8> for T
Source§impl<T> AlignerFor<16> for T
impl<T> AlignerFor<16> for T
Source§impl<T> AlignerFor<32> for T
impl<T> AlignerFor<32> for T
Source§impl<T> AlignerFor<64> for T
impl<T> AlignerFor<64> for T
Source§impl<T> AlignerFor<128> for T
impl<T> AlignerFor<128> for T
Source§type Aligner = AlignTo128<T>
type Aligner = AlignTo128<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<256> for T
impl<T> AlignerFor<256> for T
Source§type Aligner = AlignTo256<T>
type Aligner = AlignTo256<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<512> for T
impl<T> AlignerFor<512> for T
Source§type Aligner = AlignTo512<T>
type Aligner = AlignTo512<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<1024> for T
impl<T> AlignerFor<1024> for T
Source§type Aligner = AlignTo1024<T>
type Aligner = AlignTo1024<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<2048> for T
impl<T> AlignerFor<2048> for T
Source§type Aligner = AlignTo2048<T>
type Aligner = AlignTo2048<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<4096> for T
impl<T> AlignerFor<4096> for T
Source§type Aligner = AlignTo4096<T>
type Aligner = AlignTo4096<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<8192> for T
impl<T> AlignerFor<8192> for T
Source§type Aligner = AlignTo8192<T>
type Aligner = AlignTo8192<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<16384> for T
impl<T> AlignerFor<16384> for T
Source§type Aligner = AlignTo16384<T>
type Aligner = AlignTo16384<T>
The
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<32768> for T
impl<T> AlignerFor<32768> for T
Source§type Aligner = AlignTo32768<T>
type Aligner = AlignTo32768<T>
The
AlignTo* type which aligns Self to ALIGNMENT.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
Source§fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
Converts a reference to an FFI-safe type
Source§fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
Converts an FFI-safe type to a reference
Source§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
Source§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
Gets a reference to a field, determined by
offset. Read moreSource§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
Gets a muatble reference to a field, determined by
offset. Read moreSource§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
Gets a const pointer to a field,
the field is determined by
offset. Read moreSource§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
Gets a mutable pointer to a field, determined by
offset. Read moreSource§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
Replaces a field (determined by
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
Source§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
Replaces a field (determined by
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
Source§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
Source§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
Emulates the pipeline operator, allowing method syntax in more places. Read more
Source§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
The same as
piped except that the function takes &Self
Useful for functions that take &Self instead of Self. Read moreSource§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
The same as
piped, except that the function takes &mut Self.
Useful for functions that take &mut Self instead of Self.Source§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
Mutates self using a closure taking self by mutable reference,
passing it along the method chain. Read more
Source§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
Observes the value of self, passing it along unmodified.
Useful in long method chains. Read more
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
Performs a reference to reference conversion with
AsRef,
using the turbofish .as_ref_::<_>() syntax. Read moreSource§impl<This> TransmuteElement for Thiswhere
This: ?Sized,
impl<This> TransmuteElement for Thiswhere
This: ?Sized,
Source§unsafe fn transmute_element<T>(self) -> Self::TransmutedPtrwhere
Self: CanTransmuteElement<T>,
unsafe fn transmute_element<T>(self) -> Self::TransmutedPtrwhere
Self: CanTransmuteElement<T>,
Transmutes the element type of this pointer.. Read more
Source§impl<T> TypeIdentity for Twhere
T: ?Sized,
impl<T> TypeIdentity for Twhere
T: ?Sized,
Source§fn as_type_mut(&mut self) -> &mut Self::Type
fn as_type_mut(&mut self) -> &mut Self::Type
Converts a mutable reference back to the original type.
Source§fn into_type_box(self: Box<Self>) -> Box<Self::Type>
fn into_type_box(self: Box<Self>) -> Box<Self::Type>
Converts a box back to the original type.
Source§fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type> ⓘ
fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type> ⓘ
Converts an Arc back to the original type. Read more
Source§fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
Converts an Rc back to the original type. Read more
Source§fn from_type_ref(this: &Self::Type) -> &Self
fn from_type_ref(this: &Self::Type) -> &Self
Converts a reference back to the original type.
Source§fn from_type_mut(this: &mut Self::Type) -> &mut Self
fn from_type_mut(this: &mut Self::Type) -> &mut Self
Converts a mutable reference back to the original type.
Source§fn from_type_box(this: Box<Self::Type>) -> Box<Self>
fn from_type_box(this: Box<Self::Type>) -> Box<Self>
Converts a box back to the original type.