22. High-level API Reference
322
www.yoctopuce.com
YDisplayLayer
displaylayer
→
setLayerPosition()
Sets the position of the layer relative to the display upper left corner.
js
function setLayerPosition(
x
,
y
,
scrollTime
)
cpp
int setLayerPosition( int
x
, int
y
, int
scrollTime
)
m
-(int) setLayerPosition : (int)
x
: (int)
y
: (int)
scrollTime
pas
function setLayerPosition(
x
: LongInt,
y
: LongInt,
scrollTime
: LongInt): LongInt
vb
function setLayerPosition( ) As Integer
cs
int setLayerPosition( int
x
, int
y
, int
scrollTime
)
java
int setLayerPosition( int
x
, int
y
, int
scrollTime
)
uwp
Task<int> setLayerPosition( int
x
, int
y
, int
scrollTime
)
py
def setLayerPosition(
x
,
y
,
scrollTime
)
php
function setLayerPosition(
$x
,
$y
,
$scrollTime
)
es
function setLayerPosition(
x
,
y
,
scrollTime
)
cmd
YDisplay
target
[-layer
layerId
] setLayerPosition
x
y
scrollTime
When smooth scrolling is used, the display offset of the layer is automatically updated during the next
milliseconds to animate the move of the layer.
Parameters :
x
the distance from left of display to the upper left corner of the layer
y
the distance from top of display to the upper left corner of the layer
scrollTime
number of milliseconds to use for smooth scrolling, or 0 if the scrolling should be immediate.
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...