api: add setForcedPosition widget method
This commit is contained in:
@@ -182,6 +182,14 @@ public interface Widget
|
||||
@Deprecated
|
||||
void setRelativeY(int y);
|
||||
|
||||
/**
|
||||
* Set a forced position for the widget. This position overrides the relative x/y for the
|
||||
* widget, even if the widget is revalidated. To clear the forced position pass -1 for x/y.
|
||||
* @param x x pos relative to the parent
|
||||
* @param y y pos relative to the parent
|
||||
*/
|
||||
void setForcedPosition(int x, int y);
|
||||
|
||||
/**
|
||||
* Gets the text displayed on this widget.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user