Struct bottom::app::states::ProcColumn[][src]

pub struct ProcColumn {
    pub ordered_columns: Vec<ProcessSorting>,
    pub column_header_y_loc: Option<u16>,
    pub column_header_x_locs: Option<Vec<(u16, u16)>>,
    pub column_mapping: HashMap<ProcessSorting, ColumnInfo>,
    pub longest_header_len: u16,
    pub column_state: TableState,
    pub scroll_direction: ScrollDirection,
    pub current_scroll_position: usize,
    pub previous_scroll_position: usize,
    pub backup_prev_scroll_position: usize,
}

Fields

ordered_columns: Vec<ProcessSorting>column_header_y_loc: Option<u16>

The y location of headers. Since they’re all aligned, it’s just one value.

column_header_x_locs: Option<Vec<(u16, u16)>>

The x start and end bounds for each header.

column_mapping: HashMap<ProcessSorting, ColumnInfo>longest_header_len: u16column_state: TableStatescroll_direction: ScrollDirectioncurrent_scroll_position: usizeprevious_scroll_position: usizebackup_prev_scroll_position: usize

Implementations

Returns its new status.

NOTE: ALWAYS call this when opening the sorted window.

This function sets the scroll position based on the index.

Trait Implementations

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.