Euphoria
eu::imgui::SCurveGuiState Struct Reference

Represents the GUI state for an S-curve. More...

Public Member Functions

 SCurveGuiState ()=default
 SCurveGuiState (float x, float y)

Public Attributes

ImVec2 drag = { 0.5f, 0.5f }
 the gui data
std::array< ImVec2, num_points > point_cache

Static Public Attributes

static constexpr std::size_t num_points = 21
 number of points to draw, more points means smoother curve, but more expensive

Detailed Description

Represents the GUI state for an S-curve.

Definition at line 20 of file ui.h.

Constructor & Destructor Documentation

◆ SCurveGuiState() [1/2]

eu::imgui::SCurveGuiState::SCurveGuiState ( )
default

◆ SCurveGuiState() [2/2]

eu::imgui::SCurveGuiState::SCurveGuiState ( float x,
float y )

Member Data Documentation

◆ drag

ImVec2 eu::imgui::SCurveGuiState::drag = { 0.5f, 0.5f }

the gui data

Definition at line 22 of file ui.h.

◆ num_points

std::size_t eu::imgui::SCurveGuiState::num_points = 21
staticconstexpr

number of points to draw, more points means smoother curve, but more expensive

Definition at line 27 of file ui.h.

◆ point_cache

std::array<ImVec2, num_points> eu::imgui::SCurveGuiState::point_cache

Definition at line 28 of file ui.h.


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