EasyGUI  v0.1
Platform independent GUI Library
Position management

Position management functions. More...

Functions

uint8_t gui_widget_setposition (GUI_HANDLE_p h, GUI_iDim_t x, GUI_iDim_t y)
 Set widget position relative to parent object in units of pixels. More...
 
uint8_t gui_widget_setpositionpercent (GUI_HANDLE_p h, float x, float y)
 Set widget position relative to parent object in units of percent. More...
 
uint8_t gui_widget_setxposition (GUI_HANDLE_p h, GUI_iDim_t x)
 Set widget X position relative to parent object in units of pixels. More...
 
uint8_t gui_widget_setxpositionpercent (GUI_HANDLE_p h, float x)
 Set widget X position relative to parent object in units of percent. More...
 
uint8_t gui_widget_setyposition (GUI_HANDLE_p h, GUI_iDim_t y)
 Set widget Y position relative to parent object in units of pixels. More...
 
uint8_t gui_widget_setypositionpercent (GUI_HANDLE_p h, float y)
 Set widget Y position relative to parent object in units of percent. More...
 
uint8_t gui_widget_setscrollx (GUI_HANDLE_p h, GUI_iDim_t scroll)
 Set widget scroll on X axis. More...
 
uint8_t gui_widget_setscrolly (GUI_HANDLE_p h, GUI_iDim_t scroll)
 Set widget scroll on Y axis. More...
 
uint8_t gui_widget_incscrollx (GUI_HANDLE_p h, GUI_iDim_t scroll)
 Increase widget scroll on X axis. More...
 
uint8_t gui_widget_incscrolly (GUI_HANDLE_p h, GUI_iDim_t scroll)
 Increase widget scroll on Y axis. More...
 
GUI_iDim_t gui_widget_getscrollx (GUI_HANDLE_p h)
 Get widget scroll on X axis. More...
 
GUI_iDim_t gui_widget_getscrolly (GUI_HANDLE_p h)
 Get widget scroll on Y axis. More...
 

Detailed Description

Position management functions.

Function Documentation

GUI_iDim_t gui_widget_getscrollx ( GUI_HANDLE_p  h)

Get widget scroll on X axis.

Parameters
[in,out]hWidget handle
Returns
Widget scroll in units of pixels
See also
gui_widget_getscrolly
GUI_iDim_t gui_widget_getscrolly ( GUI_HANDLE_p  h)

Get widget scroll on Y axis.

Parameters
[in,out]hWidget handle
Returns
Widget scroll in units of pixels
See also
gui_widget_getscrollx
uint8_t gui_widget_incscrollx ( GUI_HANDLE_p  h,
GUI_iDim_t  scroll 
)

Increase widget scroll on X axis.

Note
This is possible on widgets with children support (windows) to have scroll on X and Y
Parameters
[in,out]hWidget handle
[in]scrollScroll increase in units of pixels. Use negative value to decrease scroll
Return values
1Scroll was set ok
0Scroll was not set
See also
gui_widget_incscrolly
uint8_t gui_widget_incscrolly ( GUI_HANDLE_p  h,
GUI_iDim_t  scroll 
)

Increase widget scroll on Y axis.

Note
This is possible on widgets with children support (windows) to have scroll on X and Y
Parameters
[in,out]hWidget handle
[in]scrollScroll increase in units of pixels. Use negative value to decrease scroll
Return values
1Scroll was set ok
0Scroll was not set
See also
gui_widget_incscrollx
uint8_t gui_widget_setposition ( GUI_HANDLE_p  h,
GUI_iDim_t  x,
GUI_iDim_t  y 
)

Set widget position relative to parent object in units of pixels.

Widget position management

Parameters
[in,out]hWidget handle
[in]xX position relative to parent object
[in]yY position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setpositionpercent
uint8_t gui_widget_setpositionpercent ( GUI_HANDLE_p  h,
float  x,
float  y 
)

Set widget position relative to parent object in units of percent.

Parameters
[in,out]hWidget handle
[in]xX position relative to parent object
[in]yY position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setposition
uint8_t gui_widget_setscrollx ( GUI_HANDLE_p  h,
GUI_iDim_t  scroll 
)

Set widget scroll on X axis.

Note
This is possible on widgets with children support (windows) to have scroll on X and Y
Parameters
[in,out]hWidget handle
[in]scrollScroll value for X direction
Return values
1Scroll was set ok
0Scroll was not set
See also
gui_widget_setscrolly
uint8_t gui_widget_setscrolly ( GUI_HANDLE_p  h,
GUI_iDim_t  scroll 
)

Set widget scroll on Y axis.

Note
This is possible on widgets with children support (windows) to have scroll on X and Y
Parameters
[in,out]hWidget handle
[in]scrollScroll value for Y direction
Return values
1Scroll was set ok
0Scroll was not set
See also
gui_widget_setscrollx
uint8_t gui_widget_setxposition ( GUI_HANDLE_p  h,
GUI_iDim_t  x 
)

Set widget X position relative to parent object in units of pixels.

Parameters
[in,out]hWidget handle
[in]xX position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setxpositionpercent
uint8_t gui_widget_setxpositionpercent ( GUI_HANDLE_p  h,
float  x 
)

Set widget X position relative to parent object in units of percent.

Parameters
[in,out]hWidget handle
[in]xX position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setxposition
uint8_t gui_widget_setyposition ( GUI_HANDLE_p  h,
GUI_iDim_t  y 
)

Set widget Y position relative to parent object in units of pixels.

Parameters
[in,out]hWidget handle
[in]yY position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setypositionpercent
uint8_t gui_widget_setypositionpercent ( GUI_HANDLE_p  h,
float  y 
)

Set widget Y position relative to parent object in units of percent.

Parameters
[in,out]hWidget handle
[in]yY position relative to parent object
Return values
1Position was set ok
0Position was not set
See also
gui_widget_setyposition