FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
business_logic::constants Namespace Reference

General logic constants. More...

Functions

constexpr std::chrono::milliseconds DOUBLE_CLICK_TIME_THRESHOLD_MS (200)
 

Variables

constexpr int PORT_CIRCLE_RADIUS = 10
 
constexpr int PORT_CIRCLE_RADIUS_HALF = PORT_CIRCLE_RADIUS / 2
 
constexpr int PORT_CIRCLE_OUTLINE_WIDTH = 6
 
constexpr int TOTAL_PORT_HITBOX_RADIUS = PORT_CIRCLE_RADIUS + (PORT_CIRCLE_OUTLINE_WIDTH / 2)
 
constexpr int TOTAL_PORT_RADIUS = PORT_CIRCLE_RADIUS + PORT_CIRCLE_OUTLINE_WIDTH
 
constexpr int TOTAL_PORT_RADIUS_HALF = TOTAL_PORT_RADIUS / 2
 
constexpr int PORT_CIRCLE_MARGIN = PORT_CIRCLE_RADIUS / 2
 
constexpr int PORT_CIRCLE_MARGIN_HALF = PORT_CIRCLE_MARGIN / 2
 
constexpr int BLOCK_OUTLINE_WIDTH = 4
 
constexpr int MAX_INPUT_CHOICES_PER_ROW = 3
 
constexpr int DEFAULT_VALUE_DISPLAY_PRECISION = 10
 

Detailed Description

General logic constants.

Function Documentation

◆ DOUBLE_CLICK_TIME_THRESHOLD_MS()

constexpr std::chrono::milliseconds business_logic::constants::DOUBLE_CLICK_TIME_THRESHOLD_MS ( 200  )
constexpr

The upper boundary threshold up to which (inclusive) a second click interaction must follow a preceding one for the whole action to be counted as a double click

Referenced by business_logic::BlocksManager::handleMouseDown().

+ Here is the caller graph for this function:

Variable Documentation

◆ BLOCK_OUTLINE_WIDTH

constexpr int business_logic::constants::BLOCK_OUTLINE_WIDTH = 4
constexpr

Definition at line 34 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ DEFAULT_VALUE_DISPLAY_PRECISION

constexpr int business_logic::constants::DEFAULT_VALUE_DISPLAY_PRECISION = 10
constexpr

◆ MAX_INPUT_CHOICES_PER_ROW

constexpr int business_logic::constants::MAX_INPUT_CHOICES_PER_ROW = 3
constexpr

Definition at line 38 of file constants.h.

Referenced by business_logic::BlocksManager::setActiveChoicesInput().

◆ PORT_CIRCLE_MARGIN

constexpr int business_logic::constants::PORT_CIRCLE_MARGIN = PORT_CIRCLE_RADIUS / 2
constexpr

Definition at line 30 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ PORT_CIRCLE_MARGIN_HALF

constexpr int business_logic::constants::PORT_CIRCLE_MARGIN_HALF = PORT_CIRCLE_MARGIN / 2
constexpr

Definition at line 31 of file constants.h.

◆ PORT_CIRCLE_OUTLINE_WIDTH

constexpr int business_logic::constants::PORT_CIRCLE_OUTLINE_WIDTH = 6
constexpr

Definition at line 20 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ PORT_CIRCLE_RADIUS

constexpr int business_logic::constants::PORT_CIRCLE_RADIUS = 10
constexpr

Definition at line 14 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ PORT_CIRCLE_RADIUS_HALF

constexpr int business_logic::constants::PORT_CIRCLE_RADIUS_HALF = PORT_CIRCLE_RADIUS / 2
constexpr

Definition at line 18 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ TOTAL_PORT_HITBOX_RADIUS

constexpr int business_logic::constants::TOTAL_PORT_HITBOX_RADIUS = PORT_CIRCLE_RADIUS + (PORT_CIRCLE_OUTLINE_WIDTH / 2)
constexpr

◆ TOTAL_PORT_RADIUS

constexpr int business_logic::constants::TOTAL_PORT_RADIUS = PORT_CIRCLE_RADIUS + PORT_CIRCLE_OUTLINE_WIDTH
constexpr

Definition at line 27 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().

◆ TOTAL_PORT_RADIUS_HALF

constexpr int business_logic::constants::TOTAL_PORT_RADIUS_HALF = TOTAL_PORT_RADIUS / 2
constexpr

Definition at line 28 of file constants.h.

Referenced by gui::elements::SkiaBaseBlockRenderer::render().