pub struct Statusline {
pub mode: PageMode,
pub url: String,
pub progress: f32,
pub cert_state: CertState,
pub count_buffer: Option<u32>,
pub private: bool,
pub find_query: Option<FindStatus>,
pub hint_state: Option<HintStatus>,
pub update_indicator: Option<UpdateIndicator>,
pub zoom_level: f64,
pub palette: Palette,
}Expand description
Rendering input for the statusline. Re-create per frame; the widget owns nothing.
Fields§
§mode: PageMode§url: String§progress: f32Page load progress 0.0..=1.0. Drawn as a thin progress bar at
the very top edge of the strip. Phase 3 doesn’t yet wire CEF’s
OnLoadingProgressChange — keep at 1.0 until that lands.
cert_state: CertState§count_buffer: Option<u32>Pending count buffer from the engine. Some(0) is treated as
“no count”; the modal engine never emits a literal zero count
here.
private: bool§find_query: Option<FindStatus>§hint_state: Option<HintStatus>Hint mode indicator. Some(...) while a hint session is live.
update_indicator: Option<UpdateIndicator>Phase 6 update channel indicator. Some(...) flags the user
that an update is available (* upd) or that the cache is
stale (* upd?). Click/tap doesn’t go anywhere yet — the user
runs buffr --check-for-updates manually.
zoom_level: f64Active tab’s CEF zoom level. 0.0 is the page default; positive values zoom in, negative out. Rendered as a percentage in the statusline (“125%”). Hidden when at default.
palette: PaletteChrome colours. Set once on startup from config.theme; flip
to Palette::high_contrast when theme.high_contrast = true.
Implementations§
Source§impl Statusline
impl Statusline
Sourcepub fn paint(&self, buffer: &mut [u32], width: usize, height: usize)
pub fn paint(&self, buffer: &mut [u32], width: usize, height: usize)
Paint the statusline into the bottom STATUSLINE_HEIGHT rows
of buffer. buffer is the full window buffer (one u32
per pixel, row-major); we touch only the strip rows so the CEF
child window above is undisturbed.
width and height are the full window’s pixel dimensions.
If height < STATUSLINE_HEIGHT we draw nothing.
Trait Implementations§
Source§impl Clone for Statusline
impl Clone for Statusline
Source§fn clone(&self) -> Statusline
fn clone(&self) -> Statusline
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Statusline
impl Debug for Statusline
Auto Trait Implementations§
impl Freeze for Statusline
impl RefUnwindSafe for Statusline
impl Send for Statusline
impl Sync for Statusline
impl Unpin for Statusline
impl UnsafeUnpin for Statusline
impl UnwindSafe for Statusline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more