Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | mx_kinetic_scroll_view_new () |
void | mx_kinetic_scroll_view_stop () |
void | mx_kinetic_scroll_view_set_deceleration () |
gdouble | mx_kinetic_scroll_view_get_deceleration () |
void | mx_kinetic_scroll_view_set_use_captured () |
gboolean | mx_kinetic_scroll_view_get_use_captured () |
void | mx_kinetic_scroll_view_set_mouse_button () |
guint32 | mx_kinetic_scroll_view_get_mouse_button () |
void | mx_kinetic_scroll_view_set_overshoot () |
gdouble | mx_kinetic_scroll_view_get_overshoot () |
void | mx_kinetic_scroll_view_set_scroll_policy () |
MxScrollPolicy | mx_kinetic_scroll_view_get_scroll_policy () |
double | acceleration-factor | Read / Write |
guint | clamp-duration | Read / Write |
gulong | clamp-mode | Read / Write |
gboolean | clamp-to-center | Read / Write |
double | deceleration | Read / Write |
guint | mouse-button | Read / Write |
double | overshoot | Read / Write |
MxScrollPolicy | scroll-policy | Read / Write |
MxKineticScrollViewState | state | Read |
gboolean | use-captured | Read / Write |
GObject ╰── GInitiallyUnowned ╰── ClutterActor ╰── MxWidget ╰── MxBin ╰── MxKineticScrollView
MxKineticScrollView implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface, MxStylable, MxFocusable and MxScrollable.
MxKineticScrollView is a single child container for actors that implements MxScrollable. It allows the contained child to be dragged to scroll, and maintains the momentum once the drag is complete. Deceleration after dragging is configurable, and it will always snap to the “step-increment” boundary.
MxKineticScrollView also implements MxScrollable itself, allowing it to be embedded in an MxScrollView to provide scroll-bars.
ClutterActor *
mx_kinetic_scroll_view_new (void
);
Creates a new MxKineticScrollView.
Since: 1.2
void
mx_kinetic_scroll_view_stop (MxKineticScrollView *scroll
);
Stops any current movement due to kinetic scrolling.
Since: 1.2
void mx_kinetic_scroll_view_set_deceleration (MxKineticScrollView *scroll
,gdouble rate
);
Sets the deceleration rate when a drag is finished on the kinetic scroll-view. This is the value that the momentum is divided by every 60th of a second.
Since: 1.2
gdouble
mx_kinetic_scroll_view_get_deceleration
(MxKineticScrollView *scroll
);
Retrieves the deceleration rate of the kinetic scroll-view.
Since: 1.2
void mx_kinetic_scroll_view_set_use_captured (MxKineticScrollView *scroll
,gboolean use_captured
);
Sets whether to use captured events to initiate drag events. This can be used to block events that would initiate scrolling from reaching the child actor.
Since: 1.2
gboolean
mx_kinetic_scroll_view_get_use_captured
(MxKineticScrollView *scroll
);
Gets the “use-captured” property.
Since: 1.2
void mx_kinetic_scroll_view_set_mouse_button (MxKineticScrollView *scroll
,guint32 button
);
Sets the mouse button number used to initiate drag events on the kinetic scroll-view.
Since: 1.2
guint32
mx_kinetic_scroll_view_get_mouse_button
(MxKineticScrollView *scroll
);
Gets the “mouse-button” property
Since: 1.2
void mx_kinetic_scroll_view_set_overshoot (MxKineticScrollView *scroll
,gdouble overshoot
);
Sets the rate at which the view will decelerate when scrolling beyond its boundaries. The deceleration rate will be multiplied by this value every 60th of a second when the view is scrolling outside of the range set by its adjustments.
See mx_kinetic_scroll_view_set_deceleration()
scroll |
||
overshoot |
The rate at which the view will decelerate when scrolling beyond its boundaries. |
Since: 1.2
gdouble
mx_kinetic_scroll_view_get_overshoot (MxKineticScrollView *scroll
);
Retrieves the deceleration rate multiplier used when the scroll-view is scrolling beyond its boundaries.
Since: 1.2
void mx_kinetic_scroll_view_set_scroll_policy (MxKineticScrollView *scroll
,MxScrollPolicy policy
);
Sets the scrolling policy for the kinetic scroll-view. This controls the possible axes of movement, and can affect the minimum size of the widget.
MxScrollPolicy
mx_kinetic_scroll_view_get_scroll_policy
(MxKineticScrollView *scroll
);
Retrieves the scrolling policy of the kinetic scroll-view.
struct MxKineticScrollView;
The contents of this structure is private and should only be accessed using the provided API.
“acceleration-factor”
property “acceleration-factor” double
Factor applied to the initial acceleration.
Owner: MxKineticScrollView
Flags: Read / Write
Allowed values: >= 0
Default value: 1
“clamp-duration”
property “clamp-duration” guint
Duration of the adjustment clamp animation.
Owner: MxKineticScrollView
Flags: Read / Write
Default value: 250
“clamp-mode”
property “clamp-mode” gulong
Animation mode to use for the clamp animation.
Owner: MxKineticScrollView
Flags: Read / Write
“clamp-to-center”
property “clamp-to-center” gboolean
Whether to clamp to step increments based on the center of the page.
Owner: MxKineticScrollView
Flags: Read / Write
Default value: FALSE
“deceleration”
property “deceleration” double
Rate at which the view will decelerate in.
Owner: MxKineticScrollView
Flags: Read / Write
Allowed values: >= 1.01
Default value: 1.1
“mouse-button”
property “mouse-button” guint
The mouse button used to control scrolling.
Owner: MxKineticScrollView
Flags: Read / Write
Default value: 1
“overshoot”
property “overshoot” double
The rate at which the view will decelerate when scrolled beyond its boundaries.
Owner: MxKineticScrollView
Flags: Read / Write
Allowed values: [0,1]
Default value: 0
“scroll-policy”
property“scroll-policy” MxScrollPolicy
The scroll policy.
Owner: MxKineticScrollView
Flags: Read / Write
Default value: MX_SCROLL_POLICY_BOTH
“state”
property “state” MxKineticScrollViewState
State of the scrolling.
Owner: MxKineticScrollView
Flags: Read
Default value: MX_KINETIC_SCROLL_VIEW_STATE_IDLE