[−][src]Struct imgui_memory_editor::MemoryEditor
Dear ImGui memory editor widget.
Use by calling either draw_contents or
draw_window methods.
Note:
While theoretically this struct is Send + Sync compatible, it doesn't implement those traits, since Dear ImGui isn't thread safe.
Implementations
impl MemoryEditor[src]
pub fn new() -> Self[src]
Create a new MemoryEditor instance.
pub fn get_open(&self) -> bool[src]
Get the Open field.
pub fn set_open(&mut self, open: bool)[src]
Set the Open field.
pub fn get_read_only(&self) -> bool[src]
Get the ReadOnly field.
pub fn set_read_only(&mut self, read_only: bool)[src]
Set the ReadOnly field.
pub fn get_cols(&self) -> c_int[src]
Get the Cols field.
pub fn set_cols(&mut self, columns: c_int)[src]
Set the Cols field.
pub fn get_highlight_color(&self) -> ImColor32[src]
Get the HighlightColor field.
pub fn set_highlight_color(&mut self, color: ImColor32)[src]
Set the HighlightColor field.
pub fn get_show_hexii(&self) -> bool[src]
Get the OptShowHexII field.
pub fn set_show_hexii(&mut self, show: bool)[src]
Set the OptShowHexII field.
pub fn get_show_ascii(&self) -> bool[src]
Get the OptShowAscii field.
pub fn set_show_ascii(&mut self, show: bool)[src]
Set the OptShowAscii field.
pub fn get_show_options(&self) -> bool[src]
Get the OptShowOptions field.
pub fn set_show_options(&mut self, show: bool)[src]
Set the OptShowOptions field.
pub fn get_show_data_preview(&self) -> bool[src]
Get the OptShowDataPreview field.
pub fn set_show_data_preview(&mut self, show: bool)[src]
Set the OptShowDataPreview field.
pub fn get_grey_out_zeroes(&self) -> bool[src]
Get the OptGreyOutZeroes field.
pub fn set_grey_out_zeroes(&mut self, greyout: bool)[src]
Set the OptGreyOutZeroes field.
pub fn get_upper_case_hex(&self) -> bool[src]
Get the OptUpperCaseHex field.
pub fn set_upper_case_hex(&mut self, uppercase: bool)[src]
Set the OptUpperCaseHex field.
pub fn get_mid_cols_count(&self) -> c_int[src]
Get the OptMidColsCount field.
pub fn set_mid_cols_count(&mut self, count: c_int)[src]
Set the OptMidColsCount field.
pub fn get_addr_digits_count(&self) -> c_int[src]
Get the OptAddrDigitsCount field.
pub fn set_addr_digits_count(&mut self, count: c_int)[src]
Set the OptAddrDigitsCount field.
pub fn set_read_fn<F>(&mut self, _: F) where
F: Fn(*const ImU8, usize) -> ImU8, [src]
F: Fn(*const ImU8, usize) -> ImU8,
Set the ReadFn field.
You can only pass in ordinary functions and stateless closures, if you pass anything else this function will panic.
pub fn set_write_fn<F>(&mut self, _: F) where
F: Fn(*mut ImU8, usize, ImU8), [src]
F: Fn(*mut ImU8, usize, ImU8),
Set the WriteFn field.
You can only pass in ordinary functions and stateless closures, if you pass anything else this function will panic.
pub fn set_highlight_fn<F>(&mut self, _: F) where
F: Fn(*const ImU8, usize) -> bool, [src]
F: Fn(*const ImU8, usize) -> bool,
Set the HighlightFn field.
You can only pass in ordinary functions and stateless closures, if you pass anything else this function will panic.
pub fn draw_contents(
&mut self,
_: &Ui<'_>,
mem_data: &mut [u8],
base_display_addr: Option<usize>
)[src]
&mut self,
_: &Ui<'_>,
mem_data: &mut [u8],
base_display_addr: Option<usize>
)
Render only the contents of the memory editor, without any window.
The base_display_addr field has a default value of 0x0000 if
None is passed as an argument.
pub fn draw_window(
&mut self,
_: &Ui<'_>,
title: &ImStr,
mem_data: &mut [u8],
base_display_addr: Option<usize>
)[src]
&mut self,
_: &Ui<'_>,
title: &ImStr,
mem_data: &mut [u8],
base_display_addr: Option<usize>
)
Render standalone memory editor, in a window.
The base_display_addr field has a default value of 0x0000 if
None is passed as an argument.
Trait Implementations
impl Debug for MemoryEditor[src]
impl Default for MemoryEditor[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryEditor
impl !Send for MemoryEditor
impl !Sync for MemoryEditor
impl Unpin for MemoryEditor
impl UnwindSafe for MemoryEditor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,