pub struct Glyphs {Show 55 fields
pub sb_v_arrow_back: char,
pub sb_v_arrow_fwd: char,
pub sb_h_arrow_back: char,
pub sb_h_arrow_fwd: char,
pub sb_page: char,
pub sb_thumb: char,
pub sb_page_no_range: char,
pub frame_tl: char,
pub frame_tr: char,
pub frame_bl: char,
pub frame_br: char,
pub frame_h: char,
pub frame_v: char,
pub frame_tl_d: char,
pub frame_tr_d: char,
pub frame_bl_d: char,
pub frame_br_d: char,
pub frame_h_d: char,
pub frame_v_d: char,
pub frame_tee_l: char,
pub frame_tee_r: char,
pub frame_tee_t: char,
pub frame_tee_b: char,
pub frame_cross: char,
pub frame_tee_l_d: char,
pub frame_tee_r_d: char,
pub frame_tee_t_d: char,
pub frame_tee_b_d: char,
pub frame_cross_d: char,
pub frame_tee_t_dh: char,
pub frame_tee_b_dh: char,
pub frame_tee_l_dv: char,
pub frame_tee_r_dv: char,
pub frame_cross_dh: char,
pub frame_cross_dv: char,
pub frame_tee_t_sh: char,
pub frame_tee_b_sh: char,
pub frame_tee_l_sv: char,
pub frame_tee_r_sv: char,
pub close_icon: &'static str,
pub zoom_icon: &'static str,
pub unzoom_icon: &'static str,
pub drag_icon: &'static str,
pub drag_left_icon: &'static str,
pub indicator_frame_normal: char,
pub indicator_frame_dragging: char,
pub indicator_modified: char,
pub button_shadow_top: char,
pub button_shadow_side: char,
pub button_shadow_bottom: char,
pub input_left_arrow: char,
pub input_right_arrow: char,
pub reveal_eye_hidden: char,
pub reveal_eye_revealed: char,
pub menu_kebab: &'static str,
}Expand description
Holder for the framework’s drawing glyphs — frame corners/tee-connectors, scrollbar arrows, check/radio marks, shadows, window decorations.
Defaults match the classic CP437/BIOS character set.
§Scrollbar glyphs
vChars = { '\x1E', '\x1F', '\xB1', '\xFE', '\xB2' };
hChars = { '\x11', '\x10', '\xB1', '\xFE', '\xB2' };Indices: [0]=back-arrow, [1]=fwd-arrow, [2]=page/trough, [3]=thumb,
[4]=page-when-no-range.
§Frame glyphs
The frame border is drawn from CP437 box characters, stored as named
glyphs (single- and double-line corners and edges) plus four icon strings
that carry the ~-toggle markers consumed by
DrawCtx::put_cstr. The tee/cross glyphs
(frame_tee_*, frame_cross) feed
crate::junction::frame_junction / crate::junction::divider_junction
for line-joining.
Box-drawing pieces:
┌ ┐ └ ┘ ─ │ (single-line)
╔ ╗ ╚ ╝ ═ ║ (double-line)
close "[~■~]" zoom "[~↑~]" un-zoom "[~↕~]"
drag "~─┘~" drag-left "~└─~"§Turbo Vision heritage
Ports the glyph tables in tvtext1.cpp. The original encoded the frame box as
a bit-mask fed table plus a sibling tee-join walk; tvision-rs stores plain named box
pieces instead and skips the sibling walk (deviation D3).
Fields§
§sb_v_arrow_back: charVertical scrollbar: up-arrow / back-arrow. vChars[0] = '\x1E' (▲).
sb_v_arrow_fwd: charVertical scrollbar: down-arrow / fwd-arrow. vChars[1] = '\x1F' (▼).
sb_h_arrow_back: charHorizontal scrollbar: left-arrow / back-arrow. hChars[0] = '\x11' (◄).
sb_h_arrow_fwd: charHorizontal scrollbar: right-arrow / fwd-arrow. hChars[1] = '\x10' (►).
sb_page: charPage/trough fill character (both orientations). vChars[2] = '\xB1' (▒).
sb_thumb: charThumb/indicator character (both orientations). vChars[3] = '\xFE' (■).
sb_page_no_range: charPage fill when range is zero (both orientations). vChars[4] = '\xB2' (▓).
frame_tl: charSingle-line top-left corner ┌ (\xDA).
frame_tr: charSingle-line top-right corner ┐ (\xBF).
frame_bl: charSingle-line bottom-left corner └ (\xC0).
frame_br: charSingle-line bottom-right corner ┘ (\xD9).
frame_h: charSingle-line horizontal edge ─ (\xC4).
frame_v: charSingle-line vertical edge │ (\xB3).
frame_tl_d: charDouble-line top-left corner ╔ (\xC9).
frame_tr_d: charDouble-line top-right corner ╗ (\xBB).
frame_bl_d: charDouble-line bottom-left corner ╚ (\xC8).
frame_br_d: charDouble-line bottom-right corner ╝ (\xBC).
frame_h_d: charDouble-line horizontal edge ═ (\xCD).
frame_v_d: charDouble-line vertical edge ║ (\xBA).
frame_tee_l: charSingle-line left tee ├ (\xC3).
frame_tee_r: charSingle-line right tee ┤ (\xB4).
frame_tee_t: charSingle-line top tee ┬ (\xC2).
frame_tee_b: charSingle-line bottom tee ┴ (\xC1).
frame_cross: charSingle-line cross ┼ (\xC5).
frame_tee_l_d: charDouble-line left tee ╠ (U+2560).
frame_tee_r_d: charDouble-line right tee ╣ (U+2563).
frame_tee_t_d: charDouble-line top tee ╦ (U+2566).
frame_tee_b_d: charDouble-line bottom tee ╩ (U+2569).
frame_cross_d: charDouble-line cross ╬ (U+256C).
frame_tee_t_dh: charDouble-bar top tee, single stem ╤ (U+2564).
frame_tee_b_dh: charDouble-bar bottom tee, single stem ╧ (U+2567).
frame_tee_l_dv: charDouble-bar left tee, single stem ╟ (U+255F).
frame_tee_r_dv: charDouble-bar right tee, single stem ╢ (U+2562).
frame_cross_dh: charDouble-bar cross, single horizontal stem ╪ (U+256A).
frame_cross_dv: charDouble-bar cross, single vertical stem ╫ (U+256B).
frame_tee_t_sh: charSingle-bar top tee, double stem ╥ (U+2565).
frame_tee_b_sh: charSingle-bar bottom tee, double stem ╨ (U+2568).
frame_tee_l_sv: charSingle-bar left tee, double stem ╞ (U+255E).
frame_tee_r_sv: charSingle-bar right tee, double stem ╡ (U+2561).
close_icon: &'static strClose icon "[~■~]" — [ ] in the frame role, ■ in FrameIcon.
zoom_icon: &'static strZoom icon "[~↑~]" (window not maximized).
unzoom_icon: &'static strUn-zoom icon "[~↕~]" (window maximized).
drag_icon: &'static strResize/drag icon (bottom-right) "~─┘~".
drag_left_icon: &'static strResize/drag icon (bottom-left) "~└─~".
indicator_frame_normal: charThe editor indicator frame ═ — drawn when the owner is not dragging.
indicator_frame_dragging: charThe editor indicator frame ─ — drawn while the owner is dragging.
indicator_modified: charThe “buffer modified” marker ☼ drawn at column 0.
Button shadow ▄ — drawn at the top of the button’s right-edge shadow
column (y == 0).
Button shadow █ — drawn down the button’s right-edge shadow column
(y > 0).
Button shadow ▀ — the button’s bottom-row shadow fill.
input_left_arrow: charInput-line left-scroll arrow ◄ (U+25C4) — drawn at column 0 when the
field can scroll left.
input_right_arrow: charInput-line right-scroll arrow ► (U+25BA) — drawn at the last column when
the field can scroll right.
Reveal-eye glyph shown while a masked field is hidden ⊝ (U+229D).
reveal_eye_revealed: charReveal-eye glyph shown while a masked field is revealed ◉ (U+25C9).
The collapsed application menu bar’s “kebab” affordance, drawn at the
top-right when a Fullscreen::Screen window covers the menu row. Themable;
its display width sets the collapsed bar’s width (so it may be other than
3 columns).
Trait Implementations§
impl Copy for Glyphs
impl Eq for Glyphs
impl StructuralPartialEq for Glyphs
Auto Trait Implementations§
impl Freeze for Glyphs
impl RefUnwindSafe for Glyphs
impl Send for Glyphs
impl Sync for Glyphs
impl Unpin for Glyphs
impl UnsafeUnpin for Glyphs
impl UnwindSafe for Glyphs
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.