bohonghuang / cl-gtk4

GTK4/Libadwaita/WebKit2 bindings for Common Lisp.
GNU Lesser General Public License v3.0
215 stars 9 forks source link

Can I create my own widgets? #61

Open Filipp-Druan opened 7 months ago

Filipp-Druan commented 7 months ago

Hello! Please tell me, can I create my own widgets? Are there any restrictions on inheritance? Can you give an example of creating your own widget?

bohonghuang commented 7 months ago

See #58. Subclassing is a complex feature and not supported yet, so you may only reuse common widgets by composition instead of inheritence at present.

bigos commented 6 months ago

If your widgets do not depend on gtk4 widgets, you can probably create your own, but that involves creating your own widget system and rendering your widgets on DrawingArea.