pub struct TextSizing {
pub scale: u8,
pub width: u8,
pub numerator: u8,
pub denominator: u8,
pub vertical: u8,
pub horizontal: u8,
}Expand description
Geometry and fractional font size for one Kitty OSC 66 block.
An explicit block occupies scale * width columns and scale rows.
Fractional scale changes the font inside that footprint.
Fields§
§scale: u8Overall scale, from 1 through 7.
width: u8Width before scaling, from 0 through 7.
Zero asks the terminal to segment and measure the text. Screen placements use an explicit width from 1 through 7.
numerator: u8Fractional scale numerator, from 0 through 15.
denominator: u8Fractional scale denominator, from 0 through 15.
When nonzero, it must exceed numerator.
vertical: u8Vertical alignment: 0 for top, 1 for bottom, 2 for center.
horizontal: u8Horizontal alignment: 0 for left, 1 for right, 2 for center.
Implementations§
Trait Implementations§
Source§impl Clone for TextSizing
impl Clone for TextSizing
impl Copy for TextSizing
Source§impl Debug for TextSizing
impl Debug for TextSizing
Source§impl Default for TextSizing
impl Default for TextSizing
impl Eq for TextSizing
Source§impl Hash for TextSizing
impl Hash for TextSizing
Source§impl PartialEq for TextSizing
impl PartialEq for TextSizing
impl StructuralPartialEq for TextSizing
Auto Trait Implementations§
impl Freeze for TextSizing
impl RefUnwindSafe for TextSizing
impl Send for TextSizing
impl Sync for TextSizing
impl Unpin for TextSizing
impl UnsafeUnpin for TextSizing
impl UnwindSafe for TextSizing
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
Mutably borrows from an owned value. Read more