Struct astrup::mark::Mark [] [src]

pub struct Mark { /* fields omitted */ }

Mark

This struct is used to determine ticks and gridlines (if they are visible). It sits in the background, and is used when building the canvas and the axis. Grids and ticks are ``visible versions'' of a mark, in that they are used to visualise where a mark is located.

Methods

impl Mark
[src]

[src]

Create and return a new mark

[src]

Set local mark coordinate

[src]

Set global mark coordinate

[src]

Set label content

[src]

Set label font size

[src]

Set label offset in vertical and horisontal direction

[src]

[src]

[src]

Set the length of the tick, in both positive and negative extent

[src]

Set the positive length of the tick

[src]

Set the negative length of the tick

[src]

Set the direction of the tick. It is only the unsigned version of the direction that is used, that is, its angle. The extension of the tick is controlled by its positive_length and negative_length.

[src]

Return the global coordinate

[src]

Return the first element of the global coordinate

[src]

Return the second element of the global coordinate

[src]

Return the label

[src]

Return the label horisontal offset

[src]

Return the label vertical offset

[src]

Scale the vertical and horisontal label offset

[src]

Fit the mark to the parent frame

[src]

Draw ticks and labels

Trait Implementations

impl Clone for Mark
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Mark
[src]

[src]

Formats the value using the given formatter.