mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
F-5 docs: the hover band lies inside the view; the host's clock is the last painting pass
This commit is contained in:
@@ -396,8 +396,8 @@ pub struct HitSizes {
|
||||
pub slop: f32,
|
||||
/// The least hit size of a part, in logical pixels; a thin handle or line is padded to it.
|
||||
pub target: f32,
|
||||
/// The band inside a canvas's edge in which a tool that autoscrolls on hover (a Polygonal Lasso's rubber band)
|
||||
/// scrolls the view.
|
||||
/// The band inside the edge of a canvas's view in which a tool that autoscrolls on hover (a Polygonal Lasso's
|
||||
/// rubber band) scrolls the view.
|
||||
pub edge: f32,
|
||||
}
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ struct HostState {
|
||||
space: Option<CanvasSpace>,
|
||||
/// The view a tool set while [`ToolHost::cancel`] ended its gesture outside a pass: the next pass reports it.
|
||||
cancelled_view: Option<CanvasView>,
|
||||
/// The pass clock of the last pass that delivered input: an autoscroll moves by the time since.
|
||||
/// The pass clock of the last pass that was not a measuring pass: an autoscroll moves by the time since.
|
||||
time: Option<f64>,
|
||||
}
|
||||
|
||||
|
||||
@@ -991,7 +991,7 @@ A theme with its own shape replaces the radii or adds an offset to control, surf
|
||||
| `size.dialog.least`, `size.dialog.wrap` | A dialog's content: the least width it opens at, and the line length its paragraphs wrap at (`LeastWidth::Dialog`, `WrapWidth::Dialog`); content that cannot wrap widens it past that |
|
||||
| `size.dialog.button`, `size.dialog.side_button` | Least width of a dialog's footer button and of a button in its column beside the body |
|
||||
| `size.story.height`, `size.story.width_min`, `size.story.width_max` | The stage a story of a canvas control draws its canvas on: its height and the range of its width; `width_min` is also the least width of a column of a story grid |
|
||||
| `size.hit.edge` | The band inside a canvas's edge in which a tool that autoscrolls on hover scrolls the view (a Polygonal Lasso's rubber band), at most a quarter of the canvas's shorter side |
|
||||
| `size.hit.edge` | The band inside the edge of a canvas's view in which a tool that autoscrolls on hover scrolls the view (a Polygonal Lasso's rubber band), at most a quarter of the view's shorter side |
|
||||
| `size.thumb.card` | The picture side of a tile card at zoom 1 (tile grids, preset browsers, the start screen) |
|
||||
| `size.thumb.sample.sm`, `size.thumb.sample.md`, `size.thumb.sample.lg` | The sample beside each thumbnail size choice in a panel's options dialog (Layers, Channels, Paths): larger than the panel's thumbnails, so the choices read apart (`PictureSize::Sample`) |
|
||||
| `space.gap.*`, `space.pad.*` | Gaps between and padding inside components |
|
||||
|
||||
Reference in New Issue
Block a user