CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
plot_axis.cppm File Reference
#include "cyd_ui/components/component_macros.h"
import fabric.logging;
import fabric.linalg;
import reflect;
import cydui;
+ Include dependency graph for plot_axis.cppm:

Go to the source code of this file.

Classes

struct  charts::axis_t< C >
 

Namespaces

namespace  charts
 

Typedefs

using la = with_precision<double>
 
using as_no_unit = quantify::quantity_t<quantify::no_unit, double>
 

Functions

 charts::COMPONENT (PlotAxis, { la::vec< 2 > axis_direction{0, 0};la::vec< 2 > label_direction{0, 0};la::scalar label_offset{0};la::vec< 2 > label_orientation{0, 0};la::scalar min=DEFAULT_AXIS_MIN_VALUE, max=DEFAULT_AXIS_MAX_VALUE, step=DEFAULT_AXIS_STEP;bool major_ticks_show=false;bool minor_ticks_show=false;unsigned int minor_ticks_count=4;std::string title="";vg::text_anchor_e title_align{vg::text_anchor_e::MIDDLE};la::scalar title_offset{0};std::function< cydui::components::component_holder_t(la::scalar)> label_component;std::function< void(la::scalar)> move_callback;std::function< void()> reset_callback;})
 
 charts::COMPONENT (NumericAxisLabel, { la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return NumericAxisLabel{{value}};})
 
 charts::COMPONENT (PiRatioAxisLabel, { la::scalar value=0;};static cydui::components::component_holder_t builder(const la::scalar value) { return PiRatioAxisLabel{{value}};})
 
template<class C>
 charts::axis_t (C &) -> axis_t< C >
 

Variables

constexpr la::scalar charts::DEFAULT_AXIS_MIN_VALUE = -1.0
 
constexpr la::scalar charts::DEFAULT_AXIS_MAX_VALUE = +1.0
 
constexpr la::scalar charts::DEFAULT_AXIS_STEP = 0.1
 

Typedef Documentation

◆ as_no_unit

using as_no_unit = quantify::quantity_t<quantify::no_unit, double>

Definition at line 17 of file plot_axis.cppm.

◆ la

using la = with_precision<double>

Definition at line 16 of file plot_axis.cppm.