Can I treat Swatch as a widget?

The swatch that is being used by Palette docker might be useful in other dockers
https://api.kde.org/appscomplete-api/krita-apidocs/libs/libkis/html/classSwatch.html

I was wondering if I can use it as widget, connect signals to it and all of that.