classPixelStitch::ColorSelector

sys::Obj
  fwt::Widget
    fwt::Canvas
      PixelStitch::ColorSelector

Color Selector

Left click to select the color for drawing Right click to open up the color editor dialog on this color (square shaped)

belt

ColorSelectorBelt belt

color

Color color

make

new make(Color color, ColorSelectorBelt belt)

Constructor

onPaint

virtual override Void onPaint(Graphics g)

On Paint

parentWindow

Window? parentWindow()

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

select

Void select(Color? c := null)

Select

mark as selected optional parameter to change the color

selected

Bool selected