GuiColorPanel method

(GuiResult, ColorD) GuiColorPanel(
  1. RectangleD bounds,
  2. ColorD color
)

Color Panel control

Implementation

(GuiResult result, ColorD color) GuiColorPanel(
  RectangleD bounds,
  ColorD color,
) => run(
  () => _debugLabels.GuiColorPanel(bounds, color),
  () {
    final valuePtr = $.Color$.Ref1(color);
    final result = _flat.GuiColorPanel(
      bounds,
      MemoryPointer.nullptr(), // `text` is not used at all
      valuePtr,
    );
    return (.fromValue(result), valuePtr.value);
  },
);