public final class PopupLayout
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PopupLayout.Strategy |
| Constructor and Description |
|---|
PopupLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
popAroundReference(Widget popup,
PopupLayout.Strategy strategy) |
void |
popAtPoint(Widget widget,
int x,
int y,
Anchor defaultAnchor,
Insets anchorInsetsOrNull)
Set location and location anchor for this
Widget. |
static void |
popAtPoint(Widget widget,
int x,
int y,
Anchor defaultAnchor,
Insets anchorInsetsOrNull,
Viewport bounds) |
public final void popAtPoint(Widget widget, int x, int y, Anchor defaultAnchor, Insets anchorInsetsOrNull)
Widget.Widget exceeds the specified viewport, location anchor is adjusted to fit the best inside viewport.x - location x (not on screen, relatively to parent)y - location y (not on screen, relatively to parent)defaultAnchor - default location anchoranchorInsetsOrNull - insets around the location, or null for no offset. Default usage is null, could be usefull if anchor is around the mouse cursor.public static void popAtPoint(Widget widget, int x, int y, Anchor defaultAnchor, Insets anchorInsetsOrNull, Viewport bounds)
public final void popAroundReference(Widget popup, PopupLayout.Strategy strategy)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com