Expand description
Prose and conversation: the two surfaces that draw content nobody in this crate wrote.
Both take text from somewhere else — a document, a model, another person — which is what makes them different from the rest of the library. A button’s label is written by the application; a Markdown document’s contents are not, and may contain a tag, a destination, or an image reference that would act on the reader if anything here acted on it.
So nothing here acts. Raw HTML is shown as the characters it is, links
report rather than open, images are named rather than fetched, and code is
set plain unless the host supplies the colour. docs/content.md states the
whole posture, and the delivery vocabulary a conversation speaks.
The two media surfaces keep the same posture from the other side. Nothing
is fetched, so ImageViewer draws what the host handed it and names what
it did not; nothing is played, so TransportBar reports every control
and moves no head. A duration nobody knows is a state, not a zero.
Re-exports§
pub use browser::BrowserPanel;pub use browser::ViewportState;pub use code_view::CodeLine;pub use code_view::CodeView;pub use code_view::LineMark;pub use diff_view::DiffFile;pub use diff_view::DiffHunk;pub use diff_view::DiffLine;pub use diff_view::DiffPresentation;pub use diff_view::DiffView;pub use diff_view::DiffViewEvent;pub use image_viewer::FitMode;pub use image_viewer::ImageFrame;pub use image_viewer::ImageSize;pub use image_viewer::ImageState;pub use image_viewer::ImageViewer;pub use image_viewer::ImageViewerEvent;pub use log_stream::LogEntry;pub use log_stream::LogStream;pub use log_stream::LogStreamState;pub use markdown::Block;pub use markdown::CellAlign;pub use markdown::CodeBlock;pub use markdown::CodeSpan;pub use markdown::Document;pub use markdown::ImageRequest;pub use markdown::Inline;pub use markdown::ListEntry;pub use markdown::Markdown;pub use markdown::MarkdownEvent;pub use message_list::Attachment;pub use message_list::DeliveryState;pub use message_list::Message;pub use message_list::MessageBody;pub use message_list::MessageList;pub use message_list::Reaction;pub use message_list::streaming_since;pub use transport::BufferedRange;pub use transport::TrackStep;pub use transport::TransportBar;pub use transport::TransportDuration;pub use transport::TransportEvent;pub use transport::TransportState;
Modules§
- browser
- The chrome around an embedded web view.
- code_
view - Read-only code, with line numbers and marked lines.
- diff_
view - Read-only presentation of a diff the caller already computed.
- image_
viewer - One image at a time, framed, zoomed and panned — and never fetched.
- log_
stream - A fixed-row, virtualized presentation of caller-owned log entries.
- markdown
- Read-only Markdown, rendered to GPUI elements.
- message_
list - A conversation, over the one virtualized list this library has.
- transport
- Playback controls for audio or video. Nothing here plays anything.