Package com.pspdfkit.compose.ui
Class PopupMenuState
-
- All Implemented Interfaces:
public final class PopupMenuState
The state of the popup menu. Controls if, where and what items are shown in the popup menu. The bottom border of the Popup will be centered on the offset (as far as this is possible with keeping it within the bounds of the parent container).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PopupMenuState.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntOffset
offset
private final Boolean
showPopup
private final List<PopupMenuItem>
items
public final static PopupMenuState.Companion
Companion
-
Constructor Summary
Constructors Constructor Description PopupMenuState(Boolean showPopup, Offset lastPress, List<PopupMenuItem> items)
-
Method Summary
Modifier and Type Method Description final IntOffset
getOffset()
final Boolean
getShowPopup()
final List<PopupMenuItem>
getItems()
-
-
Constructor Detail
-
PopupMenuState
PopupMenuState(Boolean showPopup, Offset lastPress, List<PopupMenuItem> items)
- Parameters:
showPopup
- Whether the popup menu should be shownlastPress
- The offset of the last press that triggered the popup menuitems
- The items to show in the popup menu
-
-
Method Detail
-
getShowPopup
final Boolean getShowPopup()
-
getItems
final List<PopupMenuItem> getItems()
-
-
-
-