OpenASIP  2.0
Static Public Attributes | List of all members
CanvasConstants Class Reference

#include <CanvasConstants.hh>

Collaboration diagram for CanvasConstants:
Collaboration graph

Static Public Attributes

static const double MIN_ZOOM_FACTOR = 0.2
 Minimum zoom factor. More...
 
static const double MAX_ZOOM_FACTOR = 3
 Maximum zoom factor. More...
 
static const double ZOOM_STEP = 0.1
 Step between zoom levels. More...
 
static const double AUTOZOOM_STEP = 0.01
 More precise step for automatic canvas resizing. More...
 

Detailed Description

Constants for machine canvas

Definition at line 40 of file CanvasConstants.hh.

Member Data Documentation

◆ AUTOZOOM_STEP

const double CanvasConstants::AUTOZOOM_STEP = 0.01
static

More precise step for automatic canvas resizing.

Definition at line 51 of file CanvasConstants.hh.

Referenced by FitHeightCmd::Do(), FitWindowCmd::Do(), and FitWidthCmd::Do().

◆ MAX_ZOOM_FACTOR

const double CanvasConstants::MAX_ZOOM_FACTOR = 3
static

Maximum zoom factor.

Definition at line 47 of file CanvasConstants.hh.

Referenced by FitHeightCmd::Do(), FitWidthCmd::Do(), FitWindowCmd::Do(), and MachineCanvas::setZoomFactor().

◆ MIN_ZOOM_FACTOR

const double CanvasConstants::MIN_ZOOM_FACTOR = 0.2
static

Minimum zoom factor.

Definition at line 45 of file CanvasConstants.hh.

Referenced by MachineCanvas::setZoomFactor().

◆ ZOOM_STEP

const double CanvasConstants::ZOOM_STEP = 0.1
static

Step between zoom levels.

Definition at line 49 of file CanvasConstants.hh.

Referenced by MachineCanvas::onMouseEvent(), MachineCanvas::zoomIn(), and MachineCanvas::zoomOut().


The documentation for this class was generated from the following files: