Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | moko_finger_scroll_new () |
GtkWidget * | moko_finger_scroll_new_full () |
void | moko_finger_scroll_add_with_viewport () |
gdouble | deceleration | Read / Write / Construct |
gboolean | enabled | Read / Write / Construct |
MokoFingerScrollIndicatorMode | hindicator-mode | Read / Write / Construct |
MokoFingerScrollMode | mode | Read / Write / Construct |
guint | spring-color | Read / Write / Construct |
gdouble | spring-speed | Read / Write / Construct |
guint | sps | Read / Write / Construct |
gdouble | velocity-max | Read / Write / Construct |
gdouble | velocity-min | Read / Write / Construct |
MokoFingerScrollIndicatorMode | vindicator-mode | Read / Write / Construct |
struct | MokoFingerScroll |
enum | MokoFingerScrollMode |
enum | MokoFingerScrollIndicatorMode |
GEnum ├── MokoFingerScrollIndicatorMode ╰── MokoFingerScrollMode GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkEventBox ╰── MokoFingerScroll
MokoFingerScroll implements a scrolled window designed to be used with a touch screen interface. The user scrolls the child widget by activating the pointing device and dragging it over the widget.
GtkWidget *
moko_finger_scroll_new (void
);
Create a new finger scroll widget
GtkWidget * moko_finger_scroll_new_full (gint mode
,gboolean enabled
,gdouble vel_min
,gdouble vel_max
,gdouble decel
,guint sps
);
Create a new MokoFingerScroll widget and set various properties
void moko_finger_scroll_add_with_viewport (MokoFingerScroll *scroll
,GtkWidget *child
);
Convenience function used to add a child to a GtkViewport, and add the viewport to the scrolled window.
“deceleration”
property “deceleration” gdouble
The multiplier used when decelerating when in acceleration scrolling mode.
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 0.95
“enabled”
property “enabled” gboolean
Enable or disable finger-scroll.
Flags: Read / Write / Construct
Default value: TRUE
“hindicator-mode”
property“hindicator-mode” MokoFingerScrollIndicatorMode
Mode of the horizontal scrolling indicator.
Flags: Read / Write / Construct
Default value: MOKO_FINGER_SCROLL_INDICATOR_MODE_AUTO
“mode”
property“mode” MokoFingerScrollMode
Change the finger-scrolling mode.
Flags: Read / Write / Construct
Default value: MOKO_FINGER_SCROLL_MODE_AUTO
“spring-color”
property “spring-color” guint
spring area color.
Flags: Read / Write / Construct
Default value: 4294967295
“spring-speed”
property “spring-speed” gdouble
The multiplier used when decelerating when in spring.
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 0.85
“sps”
property “sps” guint
Amount of scroll events to generate per second.
Flags: Read / Write / Construct
Default value: 15
“velocity-max”
property “velocity-max” gdouble
Maximum distance the child widget should scroll per 'frame', in pixels.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 48
“velocity-min”
property “velocity-min” gdouble
Minimum distance the child widget should scroll per 'frame', in pixels.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
“vindicator-mode”
property“vindicator-mode” MokoFingerScrollIndicatorMode
Mode of the vertical scrolling indicator.
Flags: Read / Write / Construct
Default value: MOKO_FINGER_SCROLL_INDICATOR_MODE_AUTO