KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL::GRID_LATTICE Struct Reference

The spacing of a grid source's lattice as it is drawn at the current zoom. More...

#include <graphics_abstraction_layer.h>

Public Member Functions

bool IsMajor (int aIndex) const
 

Public Attributes

VECTOR2D pitch
 along x and y, or of radius and angle for a polar grid
 
VECTOR2D extent
 as GRID_SOURCE::extent, with an unbounded polar grid reaching past the screen
 
unsigned tick = 0
 every tick-th line is a major one
 

Detailed Description

The spacing of a grid source's lattice as it is drawn at the current zoom.

Definition at line 1482 of file graphics_abstraction_layer.h.

Member Function Documentation

◆ IsMajor()

bool KIGFX::GAL::GRID_LATTICE::IsMajor ( int aIndex) const
inline

Member Data Documentation

◆ extent

VECTOR2D KIGFX::GAL::GRID_LATTICE::extent

as GRID_SOURCE::extent, with an unbounded polar grid reaching past the screen

Definition at line 1485 of file graphics_abstraction_layer.h.

Referenced by KIGFX::CAIRO_GAL_BASE::drawGridSource(), KIGFX::OPENGL_GAL::drawGridSources(), and KIGFX::GAL::gridLattice().

◆ pitch

VECTOR2D KIGFX::GAL::GRID_LATTICE::pitch

along x and y, or of radius and angle for a polar grid

Definition at line 1484 of file graphics_abstraction_layer.h.

Referenced by KIGFX::CAIRO_GAL_BASE::drawGridSource(), KIGFX::GAL_MODERN::drawGridSource(), KIGFX::OPENGL_GAL::drawGridSources(), and KIGFX::GAL::gridLattice().

◆ tick

unsigned KIGFX::GAL::GRID_LATTICE::tick = 0

every tick-th line is a major one

Definition at line 1486 of file graphics_abstraction_layer.h.

Referenced by KIGFX::GAL::gridLattice(), and IsMajor().


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