gtk4-rs icon indicating copy to clipboard operation
gtk4-rs copied to clipboard

book: Add chapter about paintables, event controllers / gestures, layout managers

Open sdroege opened this issue 2 years ago • 2 comments

All relevant when doing your own widgets. The first two especially if they're not just container widgets, the latter specially for container widgets.

sdroege avatar Oct 27 '21 09:10 sdroege

  • make an example of a silly painting widget where you can draw rectangles and they're rendered as rectangles and you can abort the current rectangle by pressing esc (-> event controller, gdk snapshot) and allowing to insert/position pictures (-> paintables, event controllers).
  • making a simple box container widget (layout manager)

sdroege avatar Oct 27 '21 09:10 sdroege

Outline:

  • custom widget painting
  • paintable
  • layout manager
  • gesture

Hofer-Julian avatar Dec 29 '21 11:12 Hofer-Julian