![]() |
![]() |
![]() |
Moblin UI Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
MxScrollView; ClutterActor * mx_scroll_view_new (void); ClutterActor * mx_scroll_view_get_hscroll_bar (MxScrollView *scroll); ClutterActor * mx_scroll_view_get_vscroll_bar (MxScrollView *scroll); void mx_scroll_view_set_mouse_scrolling (MxScrollView *scroll, gboolean enabled); gboolean mx_scroll_view_get_mouse_scrolling (MxScrollView *scroll);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxBin +----MxScrollView
MxScrollView implements ClutterContainer, MxFocusable, ClutterScriptable and MxStylable.
"enable-gestures" gboolean : Read / Write "enable-mouse-scrolling" gboolean : Read / Write "hscroll" MxScrollBar* : Read "vscroll" MxScrollBar* : Read
MxScrollView is a single child container for actors that implement MxScrollable. It provides scrollbars around the edge of the child to allow the user to move around the scrollable area.
Figure 9. MxScrollView around an MxBoxLayout
An example of an MxScrollView wrapped around an MxBoxLayout actor (which implements MxScrollable). The MxBoxLayout contains nine ClutterRectangle instances, but the stage is too small for all of them to be visible. The MxScrollView adds the appropriate horizontal scroll, which makes it possible to scroll to the end of the row of rectangles.
typedef struct _MxScrollView MxScrollView;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * mx_scroll_view_get_hscroll_bar (MxScrollView *scroll);
|
|
Returns : |
ClutterActor * mx_scroll_view_get_vscroll_bar (MxScrollView *scroll);
|
|
Returns : |
void mx_scroll_view_set_mouse_scrolling (MxScrollView *scroll, gboolean enabled);
|
|
|
gboolean mx_scroll_view_get_mouse_scrolling (MxScrollView *scroll);
|
|
Returns : |
"enable-gestures"
property"enable-gestures" gboolean : Read / Write
Enable use of pointer gestures for scrolling.
Default value: FALSE
"enable-mouse-scrolling"
property"enable-mouse-scrolling" gboolean : Read / Write
Enable automatic mouse wheel scrolling.
Default value: TRUE