MildenhallScroller

MildenhallScroller — MildenhallScroller widget enables kinetic scrolling for any scrolling widget.

Functions

gboolean (*scroller_up_cb) ()
gboolean (*scroller_down_cb) ()
ClutterActor * mildenhall_scroller_new ()

Types and Values

Includes

#include <include/mildenhall_roller_container.h>

Description

With kinetic scrolling, the user can push the widget in a given direction and it will continue to scroll in this direction until it is stopped either by the user or by friction.

Using MildenhallScroller, the application can set the properties 'total-items' and 'displayed-items', using which the scroller will display the items accordingly. 'displayed-items' will provide the maximum number of items to be displayed in the list and 'total-items' is the total number of items present in the list. The MildenhallScroller emits signals "“scrolled-up”" and "“scrolled-down”" when the user has scrolled up and down respectively.

Freeing the widget

Call g_object_unref() to free the widget.

Functions

scroller_up_cb ()

gboolean
(*scroller_up_cb) (MildenhallScroller *roller,
                   gpointer user_data);

scroller_down_cb ()

gboolean
(*scroller_down_cb) (MildenhallScroller *roller,
                     gpointer user_data);

mildenhall_scroller_new ()

ClutterActor *
mildenhall_scroller_new (MILDENHALL_SCROLLER_TYPE scroller_type);

function to create a new scroller

Returns

newly created scroller object of type ClutterActor.

[transfer full]

Types and Values

enum MILDENHALL_SCROLLER_TYPE

The MILDENHALL_SCROLLER_TYPE struct contains only private data.

Members

MILDENHALL_SCROLLER_2L

class handler for the “MILDENHALL_SCROLLER_2L” for 2line scroller

 

MILDENHALL_SCROLLER_3L

class handler for the “MILDENHALL_SCROLLER_3L” for 2line scroller

 

See Also

ThornburyItemFactory, ClutterActor, MxKineticScrollView