SILICON
Loading...
Searching...
No Matches
grid.hpp File Reference
#include <cmath>
#include <QPoint>
#include <QPointF>
#include <QSize>
Include dependency graph for grid.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SILICON
namespace  SILICON::ui

Functions

int gridToPixels (int value)
int pixelsToGrid (int value)
QPoint gridToPixels (const QPoint &point)
QPoint pixelsToGrid (const QPoint &point)
QSize pixelsToGrid (const QSize &size)
int pixelsToNearestGrid (qreal value)
QPoint pixelsToNearestGrid (const QPointF &point)

Variables

constexpr int GRID_SIZE = 10