NCBI C++ ToolKit
Variables
ruler.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <gui/opengl/glhelpers.hpp>
#include <gui/opengl/glresmgr.hpp>
#include <gui/opengl/irender.hpp>
#include <gui/opengl/glstate.hpp>
#include <gui/opengl/glbitmapfont.hpp>
#include <gui/widgets/gl/ruler.hpp>
#include <math.h>
+ Include dependency graph for ruler.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Variables

static const int kMinTickStepPixels = 5
 
static const int kLabelSepPixX = 12
 
static const int kLabelSepPixY = 12
 
static int kTextSpaceX = 2
 spacing between text and borders or between text and other graphics More...
 
static int kTextSpaceY = 2
 
static const int kOriginOffsetX = 6
 distance in pixels between left side of the ruler and origin labels More...
 
static const int kMinMetricPix = 20
 minimal size of the metric in pixels More...
 

Variable Documentation

◆ kLabelSepPixX

const int kLabelSepPixX = 12
static

Definition at line 87 of file ruler.cpp.

Referenced by CRuler::x_CalculatePosLabelsStep(), and CRuler::x_RenderAllPosLabels().

◆ kLabelSepPixY

const int kLabelSepPixY = 12
static

Definition at line 88 of file ruler.cpp.

Referenced by CRuler::x_CalculatePosLabelsStep(), and CRuler::x_RenderAllPosLabels().

◆ kMinMetricPix

const int kMinMetricPix = 20
static

minimal size of the metric in pixels

Definition at line 942 of file ruler.cpp.

Referenced by CRuler::x_RenderOriginAndMetric().

◆ kMinTickStepPixels

const int kMinTickStepPixels = 5
static

Definition at line 86 of file ruler.cpp.

Referenced by CRuler::x_ChooseTickSpace().

◆ kOriginOffsetX

const int kOriginOffsetX = 6
static

distance in pixels between left side of the ruler and origin labels

Definition at line 939 of file ruler.cpp.

Referenced by CRuler::x_RenderOriginAndMetric().

◆ kTextSpaceX

int kTextSpaceX = 2
static

spacing between text and borders or between text and other graphics

Definition at line 230 of file ruler.cpp.

Referenced by CRuler::x_GetOriginMetricSizeV(), CRuler::x_GetTicksLabelsSizeV(), CRuler::x_RenderAllPosLabels(), and CRuler::x_RenderVertPosLabel().

◆ kTextSpaceY

int kTextSpaceY = 2
static
Modified on Thu Apr 11 15:12:54 2024 by modify_doxy.py rev. 669887