Pioneer
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
EditorDraw.h File Reference
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "FloatComparison.h"
#include <string_view>
Include dependency graph for EditorDraw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Editor
 
namespace  Editor::Draw
 

Enumerations

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

Functions

ImRect Editor::Draw::RectCut (ImRect &orig, float amount, RectSide side)
 
bool Editor::Draw::BeginWindow (ImRect rect, const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
 
bool Editor::Draw::BeginHostWindow (const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
 
bool Editor::Draw::EditFloat2 (const char *label, ImVec2 *vec, float step=0.f, float step_fast=0.f, const char *format="%.3f")
 
bool Editor::Draw::LayoutHorizontal (const char *label, int nItems, float itemLabelSize)
 
void Editor::Draw::EndLayout ()
 
void Editor::Draw::BeginHorizontalBar ()
 
void Editor::Draw::EndHorizontalBar ()
 
void Editor::Draw::ShowUndoDebugWindow (UndoSystem *undo, bool *p_open=nullptr)
 
bool Editor::Draw::UndoHelper (std::string_view label, UndoSystem *undo)
 
bool Editor::Draw::ComboUndoHelper (std::string_view entryName, const char *label, const char *preview, UndoSystem *undo)
 
bool Editor::Draw::ComboUndoHelper (std::string_view label, const char *preview, UndoSystem *undo)
 
void Editor::Draw::EditEnum (std::string_view label, const char *name, const char *ns, int *val, size_t val_max, UndoSystem *undo)
 
bool Editor::Draw::MenuButton (const char *label)
 
bool Editor::Draw::ToggleButton (const char *label, bool *value, ImVec4 activeColor)
 
bool Editor::Draw::ColorEdit3 (const char *label, Color4ub *color)
 
DragDropTarget Editor::Draw::HierarchyDragDrop (const char *type, ImGuiID targetID, void *data, void *outData, size_t dataSize)
 
void Editor::Draw::HelpMarker (const char *desc, bool same_line=true)
 
bool operator== (const ImVec2 &a, const ImVec2 &b)
 

Function Documentation

◆ operator==()

bool operator== ( const ImVec2 &  a,
const ImVec2 &  b 
)
inline
Here is the call graph for this function: