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: usizeImplementations
Returns its new status.
NOTE: ALWAYS call this when opening the sorted window.
This function sets the scroll position based on the index.
