[][src]Trait meli::components::mail::listing::ListingTrait

pub trait ListingTrait: Component {
    fn coordinates(&self) -> (AccountHash, MailboxHash);
fn set_coordinates(&mut self, _: (AccountHash, MailboxHash));
fn draw_list(
        &mut self,
        grid: &mut CellBuffer,
        area: Area,
        context: &mut Context
    );
fn highlight_line(
        &mut self,
        grid: &mut CellBuffer,
        area: Area,
        idx: usize,
        context: &Context
    );
fn unfocused(&self) -> bool;
fn set_movement(&mut self, mvm: PageMovement); fn filter(
        &mut self,
        _filter_term: String,
        _results: Result<SmallVec<[EnvelopeHash; 512]>>,
        _context: &Context
    ) { ... }
fn set_modifier_active(&mut self, _new_val: bool) { ... }
fn set_modifier_command(&mut self, _new_val: Option<Modifier>) { ... }
fn modifier_command(&self) -> Option<Modifier> { ... } }

Required methods

fn coordinates(&self) -> (AccountHash, MailboxHash)

fn set_coordinates(&mut self, _: (AccountHash, MailboxHash))

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)

fn highlight_line(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    idx: usize,
    context: &Context
)

fn unfocused(&self) -> bool

fn set_movement(&mut self, mvm: PageMovement)

Loading content...

Provided methods

fn filter(
    &mut self,
    _filter_term: String,
    _results: Result<SmallVec<[EnvelopeHash; 512]>>,
    _context: &Context
)

fn set_modifier_active(&mut self, _new_val: bool)

fn set_modifier_command(&mut self, _new_val: Option<Modifier>)

fn modifier_command(&self) -> Option<Modifier>

Loading content...

Implementors

impl ListingTrait for CompactListing[src]

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

Draw the list of Envelopes.

impl ListingTrait for ConversationsListing[src]

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

Draw the list of Envelopes.

impl ListingTrait for OfflineListing[src]

impl ListingTrait for PlainListing[src]

fn draw_list(
    &mut self,
    grid: &mut CellBuffer,
    area: Area,
    context: &mut Context
)
[src]

Draw the list of Envelopes.

impl ListingTrait for ThreadListing[src]

Loading content...