Pioneer
Loading...
Searching...
No Matches
Enumerations | Functions
Editor::Draw Namespace Reference

Enumerations

enum  RectSide : uint8_t { RectSide_Left = 0 , RectSide_Top = 1 , RectSide_Right = 2 , RectSide_Bottom = 3 }
 
enum  DragDropTarget { DROP_NONE = 0 , DROP_BEFORE = 1 , DROP_CHILD = 2 , DROP_AFTER = 3 }
 

Functions

ImRect RectCut (ImRect &orig, float amount, RectSide side)
 
bool BeginWindow (ImRect rect, const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
 
bool BeginHostWindow (const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
 
bool EditFloat2 (const char *label, ImVec2 *vec, float step=0.f, float step_fast=0.f, const char *format="%.3f")
 
bool LayoutHorizontal (const char *label, int nItems, float itemLabelSize)
 
void EndLayout ()
 
void BeginHorizontalBar ()
 
void EndHorizontalBar ()
 
void ShowUndoDebugWindow (UndoSystem *undo, bool *p_open=nullptr)
 
bool UndoHelper (std::string_view label, UndoSystem *undo)
 
bool ComboUndoHelper (std::string_view entryName, const char *label, const char *preview, UndoSystem *undo)
 
bool ComboUndoHelper (std::string_view label, const char *preview, UndoSystem *undo)
 
void EditEnum (std::string_view label, const char *name, const char *ns, int *val, size_t val_max, UndoSystem *undo)
 
bool MenuButton (const char *label)
 
bool ToggleButton (const char *label, bool *value, ImVec4 activeColor)
 
bool ColorEdit3 (const char *label, Color4ub *color)
 
DragDropTarget HierarchyDragDrop (const char *type, ImGuiID targetID, void *data, void *outData, size_t dataSize)
 
void HelpMarker (const char *desc, bool same_line=true)
 
bool DerivedValues (std::string_view sectionLabel)
 
void SubtractItemWidth ()
 
bool RandomButton ()
 
bool InputFixedSlider (const char *str, fixed *val, double val_min=0.0, double val_max=1.0, const char *format="%.4f", ImGuiSliderFlags flags=ImGuiSliderFlags_AlwaysClamp)
 
bool InputFixedDegrees (const char *str, fixed *val, double val_min=-360.0, double val_max=360.0, ImGuiInputTextFlags flags=0)
 
bool InputFixedDistance (const char *str, fixed *val, ImGuiInputTextFlags flags=0)
 
bool InputFixedMass (const char *str, fixed *val, bool is_solar, ImGuiInputTextFlags flags=0)
 
bool InputFixedRadius (const char *str, fixed *val, bool is_solar, ImGuiInputTextFlags flags=0)
 

Enumeration Type Documentation

◆ DragDropTarget

Enumerator
DROP_NONE 
DROP_BEFORE 
DROP_CHILD 
DROP_AFTER 

◆ RectSide

enum Editor::Draw::RectSide : uint8_t
Enumerator
RectSide_Left 
RectSide_Top 
RectSide_Right 
RectSide_Bottom 

Function Documentation

◆ BeginHorizontalBar()

void Editor::Draw::BeginHorizontalBar ( )

◆ BeginHostWindow()

bool Editor::Draw::BeginHostWindow ( const char *  name,
bool *  p_open = NULL,
ImGuiWindowFlags  flags = 0 
)

◆ BeginWindow()

bool Editor::Draw::BeginWindow ( ImRect  rect,
const char *  name,
bool *  p_open = NULL,
ImGuiWindowFlags  flags = 0 
)

◆ ColorEdit3()

bool Editor::Draw::ColorEdit3 ( const char *  label,
Color4ub color 
)
Here is the call graph for this function:

◆ ComboUndoHelper() [1/2]

bool Editor::Draw::ComboUndoHelper ( std::string_view  entryName,
const char *  label,
const char *  preview,
UndoSystem undo 
)
Here is the call graph for this function:

◆ ComboUndoHelper() [2/2]

bool Editor::Draw::ComboUndoHelper ( std::string_view  label,
const char *  preview,
UndoSystem undo 
)
Here is the call graph for this function:

◆ DerivedValues()

bool Editor::Draw::DerivedValues ( std::string_view  sectionLabel)

◆ EditEnum()

void Editor::Draw::EditEnum ( std::string_view  label,
const char *  name,
const char *  ns,
int *  val,
size_t  val_max,
UndoSystem undo 
)
Here is the call graph for this function:

◆ EditFloat2()

bool Editor::Draw::EditFloat2 ( const char *  label,
ImVec2 *  vec,
float  step = 0.f,
float  step_fast = 0.f,
const char *  format = "%.3f" 
)
Here is the call graph for this function:

◆ EndHorizontalBar()

void Editor::Draw::EndHorizontalBar ( )

◆ EndLayout()

void Editor::Draw::EndLayout ( )

◆ HelpMarker()

void Editor::Draw::HelpMarker ( const char *  desc,
bool  same_line = true 
)

◆ HierarchyDragDrop()

Draw::DragDropTarget Editor::Draw::HierarchyDragDrop ( const char *  type,
ImGuiID  targetID,
void *  data,
void *  outData,
size_t  dataSize 
)
Here is the call graph for this function:

◆ InputFixedDegrees()

bool Editor::Draw::InputFixedDegrees ( const char *  str,
fixed val,
double  val_min = -360.0,
double  val_max = 360.0,
ImGuiInputTextFlags  flags = 0 
)
Here is the call graph for this function:

◆ InputFixedDistance()

bool Editor::Draw::InputFixedDistance ( const char *  str,
fixed val,
ImGuiInputTextFlags  flags = 0 
)
Here is the call graph for this function:

◆ InputFixedMass()

bool Editor::Draw::InputFixedMass ( const char *  str,
fixed val,
bool  is_solar,
ImGuiInputTextFlags  flags = 0 
)
Here is the call graph for this function:

◆ InputFixedRadius()

bool Editor::Draw::InputFixedRadius ( const char *  str,
fixed val,
bool  is_solar,
ImGuiInputTextFlags  flags = 0 
)
Here is the call graph for this function:

◆ InputFixedSlider()

bool Editor::Draw::InputFixedSlider ( const char *  str,
fixed val,
double  val_min = 0.0,
double  val_max = 1.0,
const char *  format = "%.4f",
ImGuiSliderFlags  flags = ImGuiSliderFlags_AlwaysClamp 
)
Here is the call graph for this function:

◆ LayoutHorizontal()

bool Editor::Draw::LayoutHorizontal ( const char *  label,
int  nItems,
float  itemLabelSize 
)

◆ MenuButton()

bool Editor::Draw::MenuButton ( const char *  label)

◆ RandomButton()

bool Editor::Draw::RandomButton ( )
inline
Here is the call graph for this function:

◆ RectCut()

ImRect Editor::Draw::RectCut ( ImRect &  orig,
float  amount,
RectSide  side 
)

◆ ShowUndoDebugWindow()

void Editor::Draw::ShowUndoDebugWindow ( UndoSystem undo,
bool *  p_open = nullptr 
)
Here is the call graph for this function:

◆ SubtractItemWidth()

void Editor::Draw::SubtractItemWidth ( )

◆ ToggleButton()

bool Editor::Draw::ToggleButton ( const char *  label,
bool *  value,
ImVec4  activeColor 
)

◆ UndoHelper()

bool Editor::Draw::UndoHelper ( std::string_view  label,
UndoSystem undo 
)
Here is the call graph for this function: