Guide API
Skip to main content

Glyphs

Struct Glyphs 

Source
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: char

Vertical scrollbar: up-arrow / back-arrow. vChars[0] = '\x1E' (▲).

§sb_v_arrow_fwd: char

Vertical scrollbar: down-arrow / fwd-arrow. vChars[1] = '\x1F' (▼).

§sb_h_arrow_back: char

Horizontal scrollbar: left-arrow / back-arrow. hChars[0] = '\x11' (◄).

§sb_h_arrow_fwd: char

Horizontal scrollbar: right-arrow / fwd-arrow. hChars[1] = '\x10' (►).

§sb_page: char

Page/trough fill character (both orientations). vChars[2] = '\xB1' (▒).

§sb_thumb: char

Thumb/indicator character (both orientations). vChars[3] = '\xFE' (■).

§sb_page_no_range: char

Page fill when range is zero (both orientations). vChars[4] = '\xB2' (▓).

§frame_tl: char

Single-line top-left corner ┌ (\xDA).

§frame_tr: char

Single-line top-right corner ┐ (\xBF).

§frame_bl: char

Single-line bottom-left corner └ (\xC0).

§frame_br: char

Single-line bottom-right corner ┘ (\xD9).

§frame_h: char

Single-line horizontal edge ─ (\xC4).

§frame_v: char

Single-line vertical edge │ (\xB3).

§frame_tl_d: char

Double-line top-left corner ╔ (\xC9).

§frame_tr_d: char

Double-line top-right corner ╗ (\xBB).

§frame_bl_d: char

Double-line bottom-left corner ╚ (\xC8).

§frame_br_d: char

Double-line bottom-right corner ╝ (\xBC).

§frame_h_d: char

Double-line horizontal edge ═ (\xCD).

§frame_v_d: char

Double-line vertical edge ║ (\xBA).

§frame_tee_l: char

Single-line left tee ├ (\xC3).

§frame_tee_r: char

Single-line right tee ┤ (\xB4).

§frame_tee_t: char

Single-line top tee ┬ (\xC2).

§frame_tee_b: char

Single-line bottom tee ┴ (\xC1).

§frame_cross: char

Single-line cross ┼ (\xC5).

§frame_tee_l_d: char

Double-line left tee ╠ (U+2560).

§frame_tee_r_d: char

Double-line right tee ╣ (U+2563).

§frame_tee_t_d: char

Double-line top tee ╦ (U+2566).

§frame_tee_b_d: char

Double-line bottom tee ╩ (U+2569).

§frame_cross_d: char

Double-line cross ╬ (U+256C).

§frame_tee_t_dh: char

Double-bar top tee, single stem ╤ (U+2564).

§frame_tee_b_dh: char

Double-bar bottom tee, single stem ╧ (U+2567).

§frame_tee_l_dv: char

Double-bar left tee, single stem ╟ (U+255F).

§frame_tee_r_dv: char

Double-bar right tee, single stem ╢ (U+2562).

§frame_cross_dh: char

Double-bar cross, single horizontal stem ╪ (U+256A).

§frame_cross_dv: char

Double-bar cross, single vertical stem ╫ (U+256B).

§frame_tee_t_sh: char

Single-bar top tee, double stem ╥ (U+2565).

§frame_tee_b_sh: char

Single-bar bottom tee, double stem ╨ (U+2568).

§frame_tee_l_sv: char

Single-bar left tee, double stem ╞ (U+255E).

§frame_tee_r_sv: char

Single-bar right tee, double stem ╡ (U+2561).

§close_icon: &'static str

Close icon "[~■~]" — [ ] in the frame role, ■ in FrameIcon.

§zoom_icon: &'static str

Zoom icon "[~↑~]" (window not maximized).

§unzoom_icon: &'static str

Un-zoom icon "[~↕~]" (window maximized).

§drag_icon: &'static str

Resize/drag icon (bottom-right) "~─┘~".

§drag_left_icon: &'static str

Resize/drag icon (bottom-left) "~└─~".

§indicator_frame_normal: char

The editor indicator frame ═ — drawn when the owner is not dragging.

§indicator_frame_dragging: char

The editor indicator frame ─ — drawn while the owner is dragging.

§indicator_modified: char

The “buffer modified” marker ☼ drawn at column 0.

§button_shadow_top: char

Button shadow ▄ — drawn at the top of the button’s right-edge shadow column (y == 0).

§button_shadow_side: char

Button shadow █ — drawn down the button’s right-edge shadow column (y > 0).

§button_shadow_bottom: char

Button shadow ▀ — the button’s bottom-row shadow fill.

§input_left_arrow: char

Input-line left-scroll arrow ◄ (U+25C4) — drawn at column 0 when the field can scroll left.

§input_right_arrow: char

Input-line right-scroll arrow ► (U+25BA) — drawn at the last column when the field can scroll right.

§reveal_eye_hidden: char

Reveal-eye glyph shown while a masked field is hidden ⊝ (U+229D).

§reveal_eye_revealed: char

Reveal-eye glyph shown while a masked field is revealed ◉ (U+25C9).

§menu_kebab: &'static str

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§

Source§

impl Clone for Glyphs

Source§

fn clone(&self) -> Glyphs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Glyphs

Source§

impl Debug for Glyphs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Glyphs

Source§

fn default() -> Self

Classic CP437/BIOS glyphs.

Source§

impl Eq for Glyphs

Source§

impl PartialEq for Glyphs

Source§

fn eq(&self, other: &Glyphs) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Glyphs

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> CustomValue for T
where T: Any + Debug,

Source§

fn as_any_rc(self: Rc<T>) -> Rc<dyn Any>

Upcast Rc<Self> to Rc<dyn Any> so FieldValue::as_custom / FieldValue::value_as can downcast.
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &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
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.