21#ifndef _GRID_SETTINGS_H
22#define _GRID_SETTINGS_H
26#include <nlohmann/json_fwd.hpp>
bool operator<(const GRID &lhs, const GRID &rhs)
void from_json(const nlohmann::json &j, GRID &g)
bool operator!=(const GRID &lhs, const GRID &rhs)
void to_json(nlohmann::json &j, const GRID &g)
int override_connected_idx
bool force_component_snap
std::vector< GRID > grids
int override_graphics_idx
Common grid settings, available to every frame.
bool operator==(const GRID &aOther) const
wxString UserUnitsMessageText(UNITS_PROVIDER *aProvider, bool aDisplayUnits=true) const
Returns a string representation of the grid in the user's units.
wxString MessageText(EDA_IU_SCALE aScale, EDA_UNITS aUnits, bool aDisplayUnits=true) const
Returns a string representation of the grid in specified units.
VECTOR2D ToDouble(EDA_IU_SCALE aScale) const