yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::resize_handles_internal Namespace Reference

Functions

float SnapCoord (float v, float snap)
 
HandleZone HitTestZone (ImVec2 mouse, const ImRect &rect, HandleMask mask, float handle_size)
 
void ApplyDragDelta (ImRect *rect, HandleZone zone, ImVec2 delta, float snap, float min_width, float min_height)
 
ImVec4 GetDefaultHandleColor ()
 

Function Documentation

◆ SnapCoord()

float yaze::gui::resize_handles_internal::SnapCoord ( float v,
float snap )

Definition at line 15 of file resize_handles.cc.

Referenced by ApplyDragDelta().

◆ HitTestZone()

HandleZone yaze::gui::resize_handles_internal::HitTestZone ( ImVec2 mouse,
const ImRect & rect,
HandleMask mask,
float handle_size )

Definition at line 21 of file resize_handles.cc.

References yaze::gui::Has(), yaze::gui::kE, yaze::gui::kN, yaze::gui::kNE, yaze::gui::kNone, yaze::gui::kNW, yaze::gui::kS, yaze::gui::kSE, yaze::gui::kSW, and yaze::gui::kW.

Referenced by yaze::gui::ResizeHandles().

Here is the call graph for this function:

◆ ApplyDragDelta()

void yaze::gui::resize_handles_internal::ApplyDragDelta ( ImRect * rect,
HandleZone zone,
ImVec2 delta,
float snap,
float min_width,
float min_height )

Definition at line 71 of file resize_handles.cc.

References yaze::gui::kE, yaze::gui::kN, yaze::gui::kNE, yaze::gui::kNone, yaze::gui::kNW, yaze::gui::kS, yaze::gui::kSE, yaze::gui::kSW, yaze::gui::kW, and SnapCoord().

Referenced by yaze::gui::ResizeHandles().

Here is the call graph for this function:

◆ GetDefaultHandleColor()

ImVec4 yaze::gui::resize_handles_internal::GetDefaultHandleColor ( )

Definition at line 105 of file resize_handles.cc.

References yaze::gui::ConvertColorToImVec4(), yaze::gui::ThemeManager::Get(), and yaze::gui::ThemeManager::GetCurrentTheme().

Referenced by yaze::gui::ResizeHandles().

Here is the call graph for this function: