Свойство | Тип | Описание | |
---|---|---|---|
_disableX | bool |
Метод | Описание | |
---|---|---|
ScrollPane ( |
||
ScrollPane ( |
||
ScrollPane ( |
||
ScrollPane ( |
||
cancel ( ) : void |
If currently scrolling by tracking a touch down, stop scrolling.
|
|
debugRender ( Graphics graphics ) : void | ||
draw ( Graphics graphics, float parentAlpha ) : void | ||
fling ( float flingTime, float velocityX, float velocityY ) : void |
Generate fling gesture
|
|
getMaxX ( ) : float |
Returns the maximum scroll value in the x direction.
|
|
getMaxY ( ) : float |
Returns the maximum scroll value in the y direction.
|
|
getScrollBarHeight ( ) : float | ||
getScrollBarWidth ( ) : float | ||
getScrollHeight ( ) : float |
Returns the height of the scrolled viewport.
|
|
getScrollPercentX ( ) : float | ||
getScrollPercentY ( ) : float | ||
getScrollSpeed ( ) : float |
Returns the x scroll speed
|
|
getScrollWidth ( ) : float |
Returns the width of the scrolled viewport.
|
|
getScrollX ( ) : float |
Returns the x scroll position in pixels, where 0 is the left of the scroll pane.
|
|
getScrollY ( ) : float |
Returns the y scroll position in pixels, where 0 is the top of the scroll pane.
|
|
getStyle ( ) : |
Returns the scroll pane's style. Modifying the returned style may not have an effect until {@link #setStyle(ScrollPaneStyle)} is called.
|
|
getUseNaturalScrolling ( ) : bool | ||
getVariableSizeKnobs ( ) : bool | ||
getVelocityX ( ) : float |
Gets the flick scroll x velocity
|
|
getVelocityY ( ) : float |
Gets the flick scroll y velocity
|
|
getVisualScrollPercentX ( ) : float | ||
getVisualScrollPercentY ( ) : float | ||
getVisualScrollX ( ) : float | ||
getVisualScrollY ( ) : float | ||
getWidget ( ) : |
Returns the Element embedded in this scroll pane, or null
|
|
hit ( Vector2 point ) : |
||
isBottomEdge ( ) : bool | ||
isFlinging ( ) : bool | ||
isForceScrollX ( ) : bool | ||
isForceScrollY ( ) : bool | ||
isLeftEdge ( ) : bool | ||
isRightEdge ( ) : bool | ||
isScrollX ( ) : bool |
Returns true if the widget is larger than the scroll pane horizontally.
|
|
isScrollY ( ) : bool |
Returns true if the widget is larger than the scroll pane vertically.
|
|
isScrollingDisabledX ( ) : bool | ||
isScrollingDisabledY ( ) : bool | ||
isTopEdge ( ) : bool | ||
layout ( ) : void | ||
scrollTo ( float x, float y, float width, float height ) : void |
Sets the scroll offset so the specified rectangle is fully in view, if possible. Coordinates are in the scroll pane widget's coordinate system.
|
|
scrollTo ( float x, float y, float width, float height, bool centerHorizontal, bool centerVertical ) : void |
Sets the scroll offset so the specified rectangle is fully in view, and optionally centered vertically and/or horizontally, if possible. Coordinates are in the scroll pane widget's coordinate system.
|
|
setClamp ( bool clamp ) : |
For flick scroll, prevents scrolling out of the widget's bounds. Default is true.
|
|
setFadeScrollBars ( bool fadeScrollBars ) : |
When true the scrollbars don't reduce the scrollable size and fade out after some time of not being used.
|
|
setFlingTime ( float flingTime ) : |
For flick scroll, sets the amount of time in seconds that a fling will continue to scroll. Default is 1.
|
|
setForceScroll ( bool x, bool y ) : |
Forces enabling scrollbars (for non-flick scroll) and overscrolling (for flick scroll) in a direction, even if the contents do not exceed the bounds in that direction.
|
|
setOverscroll ( bool overscrollX, bool overscrollY ) : |
For flick scroll, if true the widget can be scrolled slightly past its bounds and will animate back to its bounds when scrolling is stopped. Default is true.
|
|
setScrollBarPositions ( bool bottom, bool right ) : |
Set the position of the vertical and horizontal scroll bars.
|
|
setScrollPercentX ( float percentX ) : void | ||
setScrollPercentY ( float percentY ) : void | ||
setScrollSpeed ( float scrollSpeed ) : |
sets the scroll speed when the mouse wheel is used to scroll the ScrollPane
|
|
setScrollX ( float pixelsX ) : |
sets x scroll amount
|
|
setScrollY ( float pixelsY ) : |
Called whenever the y scroll amount is changed
|
|
setScrollbarsOnTop ( bool scrollbarsOnTop ) : |
When false (the default), the widget is clipped so it is not drawn under the scrollbars. When true, the widget is clipped to the entire scroll pane bounds and the scrollbars are drawn on top of the widget. If {@link #setFadeScrollBars(boolean)} is true, the scroll bars are always drawn on top.
|
|
setScrollingDisabled ( bool x, bool y ) : |
Disables scrolling in a direction. The widget will be sized to the FlickScrollPane in the disabled direction.
|
|
setSmoothScrolling ( bool smoothScrolling ) : |
||
setStyle ( |
||
setUseNaturalScrolling ( bool useNaturalScrolling ) : |
sets how the mouse wheel/trackpad operates. Natural scrolling moves the contents of a window the same direction as your fingers.
|
|
setVariableSizeKnobs ( bool variableSizeKnobs ) : |
If true, the scroll knobs are sized based on getMaxX() or getMaxY(). If false, the scroll knobs are sized based on Drawable#getMinWidth() or Drawable#getMinHeight(). Default is true.
|
|
setVelocityX ( float velocityX ) : void | ||
setVelocityY ( float velocityY ) : |
||
setWidget ( Element widget ) : ScrollPane |
Sets the {@link Element} embedded in this scroll pane
|
|
setupFadeScrollBars ( float fadeAlphaSeconds, float fadeDelaySeconds ) : ScrollPane | ||
setupOverscroll ( float distance, float speedMin, float speedMax ) : ScrollPane |
For flick scroll, sets the overscroll distance in pixels and the speed it returns to the widget's bounds in seconds. Default is 50, 30, 200.
|
|
updateVisualScroll ( ) : ScrollPane |
Sets the visual scroll amount equal to the scroll amount. This can be used when setting the scroll amount without animating.
|
Метод | Описание | |
---|---|---|
setVisualScrollX ( float pixelsX ) : void |
Called whenever the visual x scroll amount is changed
|
|
setVisualScrollY ( float pixelsY ) : void |
Called whenever the visual y scroll amount is changed
|
|
update ( ) : void |
Метод | Описание | |
---|---|---|
IInputListener ( Vector2 mousePos ) : bool | ||
IInputListener ( int mouseWheelDelta ) : bool | ||
IInputListener ( ) : void | ||
IInputListener ( Vector2 mousePos ) : void | ||
clamp ( ) : void | ||
resetFade ( ) : void |
public ScrollPane ( |
||
widget | ||
Результат | System |
public ScrollPane ( |
||
widget | ||
style | ||
Результат | System |
public ScrollPane ( |
||
widget | ||
skin | Skin | |
Результат | System |
public ScrollPane ( |
||
widget | ||
skin | Skin | |
styleName | string | |
Результат | System |
public debugRender ( Graphics graphics ) : void | ||
graphics | Graphics | |
Результат | void |
public draw ( Graphics graphics, float parentAlpha ) : void | ||
graphics | Graphics | |
parentAlpha | float | |
Результат | void |
public fling ( float flingTime, float velocityX, float velocityY ) : void | ||
flingTime | float | Fling time. |
velocityX | float | Velocity x. |
velocityY | float | Velocity y. |
Результат | void |
public getVisualScrollPercentX ( ) : float | ||
Результат | float |
public getVisualScrollPercentY ( ) : float | ||
Результат | float |
public scrollTo ( float x, float y, float width, float height ) : void | ||
x | float | The x coordinate. |
y | float | The y coordinate. |
width | float | Width. |
height | float | Height. |
Результат | void |
public scrollTo ( float x, float y, float width, float height, bool centerHorizontal, bool centerVertical ) : void | ||
x | float | The x coordinate. |
y | float | The y coordinate. |
width | float | Width. |
height | float | Height. |
centerHorizontal | bool | Center horizontal. |
centerVertical | bool | Center vertical. |
Результат | void |
public setClamp ( bool clamp ) : |
||
clamp | bool | Clamp. |
Результат |
public setFadeScrollBars ( bool fadeScrollBars ) : |
||
fadeScrollBars | bool | Fade scroll bars. |
Результат |
public setFlingTime ( float flingTime ) : |
||
flingTime | float | Fling time. |
Результат |
public setForceScroll ( bool x, bool y ) : |
||
x | bool | The x coordinate. |
y | bool | The y coordinate. |
Результат |
public setOverscroll ( bool overscrollX, bool overscrollY ) : |
||
overscrollX | bool | Overscroll x. |
overscrollY | bool | Overscroll y. |
Результат |
public setScrollBarPositions ( bool bottom, bool right ) : |
||
bottom | bool | Bottom. |
right | bool | Right. |
Результат |
public setScrollPercentX ( float percentX ) : void | ||
percentX | float | |
Результат | void |
public setScrollPercentY ( float percentY ) : void | ||
percentY | float | |
Результат | void |
public setScrollSpeed ( float scrollSpeed ) : |
||
scrollSpeed | float | Scroll speed. |
Результат |
public setScrollX ( float pixelsX ) : |
||
pixelsX | float | Pixels x. |
Результат |
public setScrollY ( float pixelsY ) : |
||
pixelsY | float | Pixels y. |
Результат |
public setScrollbarsOnTop ( bool scrollbarsOnTop ) : |
||
scrollbarsOnTop | bool | Scrollbars on top. |
Результат |
public setScrollingDisabled ( bool x, bool y ) : |
||
x | bool | The x coordinate. |
y | bool | The y coordinate. |
Результат |
public setSmoothScrolling ( bool smoothScrolling ) : |
||
smoothScrolling | bool | |
Результат |
public setStyle ( |
||
style | ||
Результат |
public setUseNaturalScrolling ( bool useNaturalScrolling ) : |
||
useNaturalScrolling | bool | Use natural scrolling. |
Результат |
public setVariableSizeKnobs ( bool variableSizeKnobs ) : |
||
variableSizeKnobs | bool | Variable size knobs. |
Результат |
public setVelocityX ( float velocityX ) : void | ||
velocityX | float | |
Результат | void |
public setVelocityY ( float velocityY ) : |
||
velocityY | float | |
Результат |
protected setVisualScrollX ( float pixelsX ) : void | ||
pixelsX | float | Pixels x. |
Результат | void |
protected setVisualScrollY ( float pixelsY ) : void | ||
pixelsY | float | Pixels y. |
Результат | void |
public setWidget ( Element widget ) : ScrollPane | ||
widget | Element | Widget. |
Результат | ScrollPane |
public setupFadeScrollBars ( float fadeAlphaSeconds, float fadeDelaySeconds ) : ScrollPane | ||
fadeAlphaSeconds | float | |
fadeDelaySeconds | float | |
Результат | ScrollPane |
public setupOverscroll ( float distance, float speedMin, float speedMax ) : ScrollPane | ||
distance | float | Distance. |
speedMin | float | Speed minimum. |
speedMax | float | Speed max. |
Результат | ScrollPane |
public updateVisualScroll ( ) : ScrollPane | ||
Результат | ScrollPane |