[−][src]Struct meli::components::mail::listing::ThreadListing
A list of all mail (Envelope
s) in a Mailbox
. On \n
it opens the Envelope
content in a
MailView
.
Fields
cursor_pos: (AccountHash, MailboxHash, usize)
(x, y, z): x is accounts, y is mailboxes, z is index inside a mailbox.
new_cursor_pos: (AccountHash, MailboxHash, usize)
length: usize
sort: (SortField, SortOrder)
subsort: (SortField, SortOrder)
color_cache: ColorCache
Cache current view.
data_columns: DataColumns
rows_drawn: SegmentTree
rows: Vec<((usize, bool, bool, EnvelopeHash), EntryStrings)>
row_updates: SmallVec<[ThreadHash; 8]>
selection: HashMap<ThreadHash, bool>
order: HashMap<EnvelopeHash, usize>
dirty: bool
If we must redraw on next redraw event
unfocused: bool
If self.view
is focused or not.
initialised: bool
view: Option<MailView>
movement: Option<PageMovement>
id: ComponentId
Implementations
impl ThreadListing
[src]
pub fn new(coordinates: (AccountHash, MailboxHash)) -> Self
[src]
fn highlight_line_self(&mut self, _idx: usize, _context: &Context)
[src]
fn make_thread_entry(
envelope: &Envelope,
indent: usize,
node_idx: ThreadNodeHash,
threads: &Threads,
indentations: &[bool],
has_sibling: bool,
is_root: bool
) -> String
[src]
envelope: &Envelope,
indent: usize,
node_idx: ThreadNodeHash,
threads: &Threads,
indentations: &[bool],
has_sibling: bool,
is_root: bool
) -> String
fn get_env_under_cursor(
&self,
cursor: usize,
_context: &Context
) -> EnvelopeHash
[src]
&self,
cursor: usize,
_context: &Context
) -> EnvelopeHash
fn make_entry_string(&self, e: &Envelope, context: &Context) -> EntryStrings
[src]
fn draw_rows(&mut self, context: &Context, start: usize, end: usize)
[src]
Trait Implementations
impl Component for ThreadListing
[src]
fn draw(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context)
[src]
fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool
[src]
fn is_dirty(&self) -> bool
[src]
fn set_dirty(&mut self, value: bool)
[src]
fn get_shortcuts(&self, context: &Context) -> ShortcutMaps
[src]
fn id(&self) -> ComponentId
[src]
fn set_id(&mut self, id: ComponentId)
[src]
fn is_visible(&self) -> bool
[src]
fn can_quit_cleanly(&mut self, _context: &Context) -> bool
[src]
fn kill(&mut self, _id: ComponentId, _context: &mut Context)
[src]
fn get_status(&self, _context: &Context) -> String
[src]
impl Debug for ThreadListing
[src]
impl Display for ThreadListing
[src]
impl ListingTrait for ThreadListing
[src]
fn coordinates(&self) -> (AccountHash, MailboxHash)
[src]
fn set_coordinates(&mut self, coordinates: (AccountHash, MailboxHash))
[src]
fn draw_list(
&mut self,
grid: &mut CellBuffer,
area: Area,
context: &mut Context
)
[src]
&mut self,
grid: &mut CellBuffer,
area: Area,
context: &mut Context
)
fn highlight_line(
&mut self,
grid: &mut CellBuffer,
area: Area,
idx: usize,
context: &Context
)
[src]
&mut self,
grid: &mut CellBuffer,
area: Area,
idx: usize,
context: &Context
)
fn unfocused(&self) -> bool
[src]
fn set_movement(&mut self, mvm: PageMovement)
[src]
fn filter(
&mut self,
_filter_term: String,
_results: Result<SmallVec<[EnvelopeHash; 512]>>,
_context: &Context
)
[src]
&mut self,
_filter_term: String,
_results: Result<SmallVec<[EnvelopeHash; 512]>>,
_context: &Context
)
fn set_modifier_active(&mut self, _new_val: bool)
[src]
fn set_modifier_command(&mut self, _new_val: Option<Modifier>)
[src]
fn modifier_command(&self) -> Option<Modifier>
[src]
impl MailListingTrait for ThreadListing
[src]
fn row_updates(&mut self) -> &mut SmallVec<[ThreadHash; 8]>
[src]
fn selection(&mut self) -> &mut HashMap<ThreadHash, bool>
[src]
fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]>
[src]
fn refresh_mailbox(&mut self, context: &mut Context, _force: bool)
[src]
Fill the self.content
CellBuffer
with the contents of the account mailbox the user has
chosen.
fn redraw_threads_list(
&mut self,
context: &Context,
items: Box<dyn Iterator<Item = ThreadHash>>
)
[src]
&mut self,
context: &Context,
items: Box<dyn Iterator<Item = ThreadHash>>
)
fn perform_action(
&mut self,
context: &mut Context,
thread_hashes: SmallVec<[ThreadHash; 8]>,
a: &ListingAction
)
[src]
&mut self,
context: &mut Context,
thread_hashes: SmallVec<[ThreadHash; 8]>,
a: &ListingAction
)
fn redraw_envelope_list(
&mut self,
_context: &Context,
_items: Box<dyn Iterator<Item = EnvelopeHash>>
)
[src]
&mut self,
_context: &Context,
_items: Box<dyn Iterator<Item = EnvelopeHash>>
)
Auto Trait Implementations
impl !RefUnwindSafe for ThreadListing
impl Send for ThreadListing
impl Sync for ThreadListing
impl Unpin for ThreadListing
impl !UnwindSafe for ThreadListing
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,