7#ifndef __HDI_CORE_GRID__
8#define __HDI_CORE_GRID__
10#if defined(HDI_CORE_AIP_MODE)
66 typedef std::unique_ptr<Spacing> SpacingUP;
67 typedef std::shared_ptr<Spacing> SpacingSP;
68 typedef std::weak_ptr<Spacing> SpacingWP;
191 void setSpacing(
const double spacing_,
const int32_t ticks_);
232 friend class CurrentDocument;
Describes an RGB color, with opacity, typically for UI purposes.
Definition hdicoreColor.h:34
Describes the spacing and density of gridlines.
Definition hdicoreGrid.h:39
Spacing()
Constructs a new Spacing object with default values.
double spacing
Space between major gridlines, in points.
Definition hdicoreGrid.h:44
virtual ~Spacing()
Destructs a Spacing object.
int32_t ticks
Number of minor gridlines between the major gridlines.
Definition hdicoreGrid.h:49
Color darkColor() const
Gets the current "dark" color (for major gridlines)
void setVisible(const bool visible_)
Sets whether the grid is visible.
void hide()
Hides the grid.
~Grid()
Destructs a Grid object.
Spacing spacing() const
Gets the spacing of the gridlines.
void setSpacing(const double spacing_, const int32_t ticks_)
Sets the spacing of the gridlines from a spacing distance and the number of ticks between.
void setBehindArt(const bool behind_)
Sets whether the grid draws behind art.
Color lightColor() const
Gets the current "light" color (for minor gridlines, also called "ticks")
bool visible() const
Gets whether the grid is visible or not.
void setDarkColor(const Color &color_)
Sets the current "dark" color (for major gridlines)
void show()
Shows the grid.
Style
Indicates how the grid is drawn.
Definition hdicoreGrid.h:29
bool behindArt() const
Gets whether the grid draws behind art.
void setSnaps(const bool snaps_)
Sets whether the gridlines can be snapped to.
void setStyle(const Style style_)
Sets the gridline style, either kAIGridStyleGraph and kAIGridStyleDotted.
void setLightColor(const Color &color_)
Sets the current "light" color (for minor gridlines, also called "ticks")
bool snaps() const
Gets whether the gridlines can be snapped to.
Style style() const
Gets the gridline style, either kAIGridStyleGraph and kAIGridStyleDotted.
void setSpacing(const Spacing &spacing_)
Sets the spacing of the gridlines from an AIGridSpacing struct.
Header file for describing plugin UI colors.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.