Enum Glyph

Source
pub(crate) enum Glyph {
Show 66 variants Cursor, Letter(char), Rect, Ellipse, Poly(u32), Star, Line, Arrow, Pencil, Mask, Zoom, Razor, Flag, Hourglass, Eye, EyeOff, Diamond, Record, Mic, Headphone, SpeakerOn, SpeakerOff, Camera, FilmStrip, Nodes, Layers, Target, Magnet, Spacer, MusicNote, Folder, Container, Cross, Dot, Copy, Paste, Tri(Dir), Skip(Dir), Jump(Dir), Play, Pause, Stop, Fullscreen, PopOut, Indent(bool), Sequence, Template, Snowflake, FilmReel, Bolt, ImportArrow, ExportArrow, Transition, Subtitles, Gear, Sliders, Wrench, Clapperboard, Waveform, CurveIcon, Clock, Notepad, Bookmark, UndoArrow(Dir), FloppyDisk, Terminal,
}
Expand description

The strip, left to right: (tool, icon, name). Tool::Mask stands for whichever mask shape is selected (the combo next to it picks one), the shape tools each get their own button. What icon_button draws. Painted with the painter, not typed: nearly every obvious character (polygon, pencil, half-disc, magnifier, close, play, reorder arrows) is missing from Segoe UI and egui’s bundled fonts and came out as a tofu box.

Variants§

§

Cursor

§

Letter(char)

§

Rect

§

Ellipse

§

Poly(u32)

§

Star

§

Line

§

Arrow

§

Pencil

§

Mask

§

Zoom

§

Razor

§

Flag

§

Hourglass

§

Eye

§

EyeOff

§

Diamond

§

Record

§

Mic

§

Headphone

§

SpeakerOn

§

SpeakerOff

§

Camera

§

FilmStrip

§

Nodes

Two patch boxes joined by a cable — a node graph.

§

Layers

A stack of sheets — an adjustment layer.

§

Target

A shooting target: rings and cross ticks — motion tracking.

§

Magnet

A horseshoe magnet — the snapping toggle.

§

Spacer

Two posts with a double-headed arrow between them — a gap being widened.

§

MusicNote

An eighth note — the audio-effects catalogue card (no picture to render for those).

§

Folder

A file-explorer folder: a tab sitting on a body.

§

Container

A container / slot clip.

§

Cross

Two crossed strokes — close, delete, clear.

§

Dot

A filled dot — a colour swatch, a bullet, “in use”.

§

Copy

Two sheets, one behind the other — copy.

§

Paste

A clipboard — paste.

§

Tri(Dir)

A filled triangle pointing Dir — reorder, collapse, step one frame.

§

Skip(Dir)

Two triangles — the previous / next cut.

§

Jump(Dir)

A triangle backed against a bar — go to the very start / end.

§

Play

§

Pause

§

Stop

§

Fullscreen

Four corner brackets — fullscreen.

§

PopOut

A window with an arrow leaving it — pop this pane out.

§

Indent(bool)

An arrow into a margin bar — indent (true) / outdent (false).

§

Sequence

A lane carrying two blocks — a nested sequence.

§

Template

A card with a folded corner — a saved clip template.

§

Snowflake

A six-armed snowflake — a frozen frame.

§

FilmReel

A movie reel: rim, hub, four spoke holes and a tape tail.

§

Bolt

A filled lightning zigzag — effects / performance.

§

ImportArrow

An open tray with an arrow dropping into it — import.

§

ExportArrow

The same tray with the arrow rising out — export.

§

Transition

Two overlapping squares with a diagonal across the overlap — a transition.

§

Subtitles

A caption box with two text bars in its lower half.

§

Gear

A cog: ring, eight stubs and a hub — settings.

§

Sliders

Three slider tracks, each with its knob at a different position.

§

Wrench

An open-ended wrench head with a diagonal handle.

§

Clapperboard

A clapperboard: body plus a slanted, hatched top bar.

§

Waveform

Five vertical bars around a midline — an audio waveform.

§

CurveIcon

Axes with a rising curve and two square handles — a value curve.

§

Clock

A clock face with two hands.

§

Notepad

A sheet with three ruled lines.

§

Bookmark

A ribbon with a notched V bottom.

§

UndoArrow(Dir)

A curved arrow — undo (Dir::Left) / redo (Dir::Right).

§

FloppyDisk

A save disk: notched square, shutter and label.

§

Terminal

A console window: ‘>’ prompt and an underscore.

Implementations§

Source§

impl Glyph

Source

pub const ALL: &'static [Glyph]

Every unit variant plus a representative of each parameterized one, for the settings icon picker (from_name resolves back into this list).

Source

pub fn name(self) -> &'static str

Stable lower-case name of the variant, kept in sync with from_name — what a saved icon choice is stored as. Parameterized variants fold their direction into the name.

Source

pub fn from_name(s: &str) -> Option<Glyph>

The reverse of name over ALL (so parameterized names come back as their representative).

Trait Implementations§

Source§

impl Clone for Glyph

Source§

fn clone(&self) -> Glyph

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Glyph

Source§

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

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

impl PartialEq for Glyph

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Glyph

Source§

impl Eq for Glyph

Source§

impl StructuralPartialEq for Glyph

Auto Trait Implementations§

§

impl Freeze for Glyph

§

impl RefUnwindSafe for Glyph

§

impl Send for Glyph

§

impl Sync for Glyph

§

impl Unpin for Glyph

§

impl UnwindSafe for Glyph

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
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
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

impl<T> MaybeSend for T

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,