#include <ap_Ruler.h>
Public Member Functions | |
ap_RulerTicks (GR_Graphics *pG, UT_Dimension dim) | |
UT_sint32 | snapPixelToGrid (UT_sint32 dist) |
double | scalePixelDistanceToUnits (UT_sint32 dist) |
Public Attributes | |
GR_Graphics * | m_pG |
UT_uint32 | tickUnit |
UT_uint32 | tickUnitScale |
UT_uint32 | tickLong |
UT_uint32 | tickLabel |
UT_uint32 | tickScale |
UT_uint32 | dragDelta |
UT_Dimension | dimType |
double | dBasicUnit |
ap_RulerTicks::ap_RulerTicks | ( | GR_Graphics * | pG, | |
UT_Dimension | dim | |||
) |
References dBasicUnit, DIM_CM, DIM_IN, DIM_MM, DIM_PI, DIM_PT, dimType, dragDelta, m_pG, tickLabel, tickLong, tickScale, tickUnit, tickUnitScale, UT_ASSERT_HARMLESS, UT_convertToLogicalUnits(), and UT_NOT_IMPLEMENTED.
double ap_RulerTicks::scalePixelDistanceToUnits | ( | UT_sint32 | dist | ) |
Convert pixel distance into units used by ruler
dist | Raw distance value on grid | |
tick | Ruler to which we snap |
References dragDelta, and tickUnitScale.
Referenced by AP_TopRuler::_getUnitsFromRulerLeft(), AP_TopRuler::_setTabStops(), AP_LeftRuler::mouseMotion(), AP_TopRuler::mousePress(), and AP_LeftRuler::mouseRelease().
Snap pixel value to nearest grid line
dist | Raw distance value on grid | |
tick | Ruler to which we snap |
References dragDelta, and tickUnitScale.
Referenced by AP_LeftRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_LeftRuler::mousePress(), AP_LeftRuler::mouseRelease(), and AP_TopRuler::setTableLineDrag().
double ap_RulerTicks::dBasicUnit |
Referenced by AP_TopRuler::_getUnitsFromRulerLeft(), and ap_RulerTicks().
Referenced by ap_RulerTicks(), scalePixelDistanceToUnits(), and snapPixelToGrid().
Referenced by ap_RulerTicks().
Referenced by AP_TopRuler::_drawTickMark(), ap_RulerTicks(), and AP_LeftRuler::drawLU().
Referenced by AP_TopRuler::_drawTickMark(), ap_RulerTicks(), and AP_LeftRuler::drawLU().
Referenced by AP_TopRuler::_drawTickMark(), ap_RulerTicks(), and AP_LeftRuler::drawLU().
Referenced by AP_TopRuler::_drawTicks(), AP_TopRuler::_getUnitsFromRulerLeft(), ap_RulerTicks(), and AP_LeftRuler::drawLU().