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
impl Glyph
Sourcepub const ALL: &'static [Glyph]
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).
Trait Implementations§
impl Copy for Glyph
impl Eq for Glyph
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> 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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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