Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
SpeedSlider.cpp File Reference
#include "SpeedSlider.hpp"
#include <raylib.h>
#include <cmath>
#include <string>
#include "I18n.hpp"
#include "TextRenderer.hpp"
+ Include dependency graph for SpeedSlider.cpp:

Go to the source code of this file.

Variables

static constexpr float ROUNDNESS = 0.2f
 
static constexpr int SEGMENTS = 8
 
static constexpr float BORDER_THICKNESS = 2.0f
 
static constexpr float TRACK_H = 4.0f
 
static constexpr float HANDLE_RADIUS = 6.0f
 
static constexpr Color BG_COLOR = {20, 25, 35, 180}
 
static constexpr Color BORDER_COLOR = {60, 70, 90, 200}
 
static constexpr Color ACCENT_COLOR = {210, 220, 240, 255}
 
static constexpr Color TRACK_BG_COLOR = {60, 70, 90, 220}
 
static constexpr Color TRACK_FILL_COLOR = {100, 160, 255, 255}
 
static constexpr Color HANDLE_DRAG_COLOR = {255, 220, 80, 255}
 

Variable Documentation

◆ ACCENT_COLOR

constexpr Color ACCENT_COLOR = {210, 220, 240, 255}
staticconstexpr

Definition at line 24 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ BG_COLOR

constexpr Color BG_COLOR = {20, 25, 35, 180}
staticconstexpr

Definition at line 22 of file SpeedSlider.cpp.

◆ BORDER_COLOR

constexpr Color BORDER_COLOR = {60, 70, 90, 200}
staticconstexpr

Definition at line 23 of file SpeedSlider.cpp.

◆ BORDER_THICKNESS

constexpr float BORDER_THICKNESS = 2.0f
staticconstexpr

Definition at line 18 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ HANDLE_DRAG_COLOR

constexpr Color HANDLE_DRAG_COLOR = {255, 220, 80, 255}
staticconstexpr

Definition at line 27 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ HANDLE_RADIUS

constexpr float HANDLE_RADIUS = 6.0f
staticconstexpr

Definition at line 20 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw(), and SpeedSlider::handleInput().

◆ ROUNDNESS

constexpr float ROUNDNESS = 0.2f
staticconstexpr

Definition at line 16 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ SEGMENTS

constexpr int SEGMENTS = 8
staticconstexpr

Definition at line 17 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ TRACK_BG_COLOR

constexpr Color TRACK_BG_COLOR = {60, 70, 90, 220}
staticconstexpr

Definition at line 25 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ TRACK_FILL_COLOR

constexpr Color TRACK_FILL_COLOR = {100, 160, 255, 255}
staticconstexpr

Definition at line 26 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().

◆ TRACK_H

constexpr float TRACK_H = 4.0f
staticconstexpr

Definition at line 19 of file SpeedSlider.cpp.

Referenced by SpeedSlider::draw().