GtkRange has two child classes: GtkScale and GtkScrollbar

GtkRange's expose implements the painting of GtkScrollbar, and GtkScale implements its own.

GtkScale implements a mark API that support labels :

Implementing Generic Marks for GtkScrollbar

There are two options here:

* Implement an add_mark (GtkScrollbar*, gdouble) method for GtkScrollbar. The problem with this one is that the code to draw the scrollbar lies in GtkRange.

* Implement generic mark support in GtkRange. The problem here is that GtkScale will have to use the underlying, and even then is GtkRange the right place for the GtkScrollbar expose?

This is an example of the expected result of the feature:

http://www.techdreams.org/wp-content/uploads/2008/09/google-chrome-scrollbar-higlighting.png

Projects/GTK/GtkRange (last edited 2018-12-05 15:46:03 by EmmanueleBassi)