api: add setForcedPosition widget method

This commit is contained in:
Adam
2022-05-19 09:52:35 -04:00
parent b9da0435d2
commit cbf00f6c41

View File

@@ -182,6 +182,14 @@ public interface Widget
@Deprecated @Deprecated
void setRelativeY(int y); 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. * Gets the text displayed on this widget.
* *