Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::CanvasScrollbarAxis Struct Reference

One scrollbar axis of the render pane's emulated canvas scrollbars. More...

#include "donner/editor/CanvasScrollbars.h"

Public Attributes

bool visible = false
 True when the document extends past the pane on this axis (the bar is drawn only when there is something to scroll to).
double railStart = 0.0
 Rail start position along the axis, in logical screen coordinates.
double railLength = 0.0
 Rail length along the axis, in logical screen coordinates.
double thumbStart = 0.0
 Thumb start position along the axis, in logical screen coordinates.
double thumbLength = 0.0
 Thumb length along the axis, in logical screen coordinates.
double contentPerThumbPx = 1.0
 Screen-space content shift per pixel of thumb drag: dragging the thumb by +1 px pans the content by -contentPerThumbPx px on this axis.

Detailed Description

One scrollbar axis of the render pane's emulated canvas scrollbars.

Member Data Documentation

◆ contentPerThumbPx

double donner::editor::CanvasScrollbarAxis::contentPerThumbPx = 1.0

Screen-space content shift per pixel of thumb drag: dragging the thumb by +1 px pans the content by -contentPerThumbPx px on this axis.

◆ railLength

double donner::editor::CanvasScrollbarAxis::railLength = 0.0

Rail length along the axis, in logical screen coordinates.

◆ railStart

double donner::editor::CanvasScrollbarAxis::railStart = 0.0

Rail start position along the axis, in logical screen coordinates.

◆ thumbLength

double donner::editor::CanvasScrollbarAxis::thumbLength = 0.0

Thumb length along the axis, in logical screen coordinates.

◆ thumbStart

double donner::editor::CanvasScrollbarAxis::thumbStart = 0.0

Thumb start position along the axis, in logical screen coordinates.

◆ visible

bool donner::editor::CanvasScrollbarAxis::visible = false

True when the document extends past the pane on this axis (the bar is drawn only when there is something to scroll to).


The documentation for this struct was generated from the following file: