MCPcopy Create free account
hub / github.com/btbd/smap / ColorButton

Method ColorButton

example/imgui/imgui.cpp:9913–9982  ·  view source on GitHub ↗

A little colored 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.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected