Add a scrollable indication

Draw a themable indication when an edge of a scrolled window
is hiding some content that can be scrolled in.
This commit is contained in:
Matthias Clasen
2014-12-10 10:00:21 -05:00
parent 45d0a5cc4b
commit b73578f95d
3 changed files with 78 additions and 1 deletions

View File

@ -905,6 +905,16 @@ struct _GtkStyleContextClass
*/
#define GTK_STYLE_CLASS_OVERSHOOT "overshoot"
/*
* GTK_STYLE_CLASS_UNDERSHOOT:
* A CSS class that is added on the visual hints that happen
* where content is 'scrolled off' and can be made visible
* by scrolling.
*
* Since: 3.16
*/
#define GTK_STYLE_CLASS_UNDERSHOOT "undershoot"
/*
* GTK_STYLE_CLASS_PAPER:
* A CSS class that is added to areas that should look like paper.