Struct egui_memory_editor::option_data::MemoryEditorOptions[][src]

pub struct MemoryEditorOptions {
    pub is_open: bool,
    pub show_ascii_sidebar: bool,
    pub show_zero_colour: bool,
    pub data_preview_options: DataPreviewOptions,
    pub column_count: usize,
    pub zero_colour: Color32,
    pub address_text_colour: Color32,
    pub highlight_colour: Color32,
    pub memory_editor_text_style: TextStyle,
    pub memory_editor_address_text_style: TextStyle,
    pub memory_editor_ascii_text_style: TextStyle,
    // some fields omitted
}

Fields

is_open: bool

Used to check if the window is open, if you don’t use the crate::MemoryEditor::window_ui call then this is irrelevant.

show_ascii_sidebar: bool

Whether to show the ASCII representation of all the u8 values in the main UI.

show_zero_colour: bool

Whether 0x00 values in the main UI should use the MemoryEditorOptions::zero_colour.

data_preview_options: DataPreviewOptions

The options which determine how to interpret selected data, concerning endianness and number type.

column_count: usize

The amount of columns for the main UI, this amount directly impacts the possible size of your address space.

At the moment, you’ll at most be able to display the range: 0..2^(24 + log_2(column_count)).

zero_colour: Color32

A custom colour for 0x00. By default will be grey.

address_text_colour: Color32

The colour for address indicators on the very left of the UI.

highlight_colour: Color32

The highlight colour for both the main UI and the ASCII sidebar. This will be enabled when you right-click an address, or when using the goto address function in the UI.

memory_editor_text_style: TextStyle

The [egui::TextStyle] for the main UI, indicating the values. Default is [egui::TextStyle::Monospace]

memory_editor_address_text_style: TextStyle

The [egui::TextStyle] for the addresses in the main UI on the left. Default is [egui::TextStyle::Monospace]

memory_editor_ascii_text_style: TextStyle

The [egui::TextStyle] for the ASCII values in the right side-bar (if they’re enabled). Default is [egui::TextStyle::Monospace]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.