CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
charts::axis_t< C > Struct Template Referenceexport

Public Member Functions

 axis_t (C &plot, const la::vec< 2 > axis_direction, const la::vec< 2 > label_direction, const la::vec< 2 > label_orientation, bool default_show, la::scalar default_label_offset=30, la::scalar default_title_offset=45)
 
C & show (const bool show_axis)
 
C & bounds (const la::scalar min, const la::scalar max, const la::scalar step)
 
C & bounds_auto (const bool bind_zero=false)
 
C & major_ticks_show (const bool show_ticks)
 
C & minor_ticks_show (const bool show_ticks)
 
C & minor_ticks_count (const unsigned int tick_count)
 
C & title (const std::string &title_str)
 
C & title_align (const vg::text_anchor_e align)
 
C & title_offset (const la::scalar offset)
 
C & label_component (const std::function< cydui::components::component_holder_t(la::scalar)> &builder)
 
template<typename L>
C & label_component ()
 

Friends

template<class>
struct grid_t
 
template<class>
struct view_t
 

Detailed Description

template<class C>
struct charts::axis_t< C >

Definition at line 314 of file plot_axis.cppm.

Constructor & Destructor Documentation

◆ axis_t()

template<class C>
charts::axis_t< C >::axis_t ( C & plot,
const la::vec< 2 > axis_direction,
const la::vec< 2 > label_direction,
const la::vec< 2 > label_orientation,
bool default_show,
la::scalar default_label_offset = 30,
la::scalar default_title_offset = 45 )
inlineexplicit

Definition at line 315 of file plot_axis.cppm.

Member Function Documentation

◆ bounds()

template<class C>
C & charts::axis_t< C >::bounds ( const la::scalar min,
const la::scalar max,
const la::scalar step )
inline

Definition at line 342 of file plot_axis.cppm.

◆ bounds_auto()

template<class C>
C & charts::axis_t< C >::bounds_auto ( const bool bind_zero = false)
inline

Definition at line 354 of file plot_axis.cppm.

◆ label_component() [1/2]

template<class C>
template<typename L>
C & charts::axis_t< C >::label_component ( )
inline

Definition at line 399 of file plot_axis.cppm.

◆ label_component() [2/2]

template<class C>
C & charts::axis_t< C >::label_component ( const std::function< cydui::components::component_holder_t(la::scalar)> & builder)
inline

Definition at line 391 of file plot_axis.cppm.

◆ major_ticks_show()

template<class C>
C & charts::axis_t< C >::major_ticks_show ( const bool show_ticks)
inline

Definition at line 360 of file plot_axis.cppm.

◆ minor_ticks_count()

template<class C>
C & charts::axis_t< C >::minor_ticks_count ( const unsigned int tick_count)
inline

Definition at line 370 of file plot_axis.cppm.

◆ minor_ticks_show()

template<class C>
C & charts::axis_t< C >::minor_ticks_show ( const bool show_ticks)
inline

Definition at line 365 of file plot_axis.cppm.

◆ show()

template<class C>
C & charts::axis_t< C >::show ( const bool show_axis)
inline

Definition at line 337 of file plot_axis.cppm.

◆ title()

template<class C>
C & charts::axis_t< C >::title ( const std::string & title_str)
inline

Definition at line 375 of file plot_axis.cppm.

◆ title_align()

template<class C>
C & charts::axis_t< C >::title_align ( const vg::text_anchor_e align)
inline

Definition at line 380 of file plot_axis.cppm.

◆ title_offset()

template<class C>
C & charts::axis_t< C >::title_offset ( const la::scalar offset)
inline

Definition at line 385 of file plot_axis.cppm.

Friends And Related Symbol Documentation

◆ grid_t

template<class C>
template<class>
friend struct grid_t
friend

Definition at line 461 of file plot_axis.cppm.

◆ view_t

template<class C>
template<class>
friend struct view_t
friend

Definition at line 463 of file plot_axis.cppm.


The documentation for this struct was generated from the following file: