MCPcopy Create free account
hub / github.com/cybereality/Perception / ColorButton

Method ColorButton

Perception/dependecies/imgui/imgui_widgets.cpp:5229–5310  ·  view source on GitHub ↗

A little color square. Return true when clicked. FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

GetCurrentWindowFunction · 0.85
ImMinFunction · 0.85
ImVec2Class · 0.85
GetIDMethod · 0.80
ExpandMethod · 0.80
AddRectFilledMethod · 0.80
AddRectMethod · 0.80

Tested by

no test coverage detected