CommandButtonLayoutInfo

data class CommandButtonLayoutInfo(fullSize: Size, actionClickArea: Rect, popupClickArea: Rect, separatorArea: Rect, iconRect: Rect, textLayoutInfoList: List<CommandButtonLayoutManager.TextLayoutInfo>, extraTextLayoutInfoList: List<CommandButtonLayoutManager.TextLayoutInfo>, popupActionRect: Rect)

Layout information on different visual parts of a single command button.

Parameters

actionClickArea

The action area. A mouse click in this area will trigger the action lambda set as Command.action.

popupClickArea

The popup area. A mouse click in this area will show the popup content associated with the command button.

separatorArea

The separator area. If it's not empty, the command button will show a separator between .actionClickArea and .popupClickArea on mouse rollover.

iconRect

Rectangle for the command button icon.

textLayoutInfoList

Layout information for the command button text (that can span multiple lines).

extraTextLayoutInfoList

Layout information for the command button extra text (that can span multiple lines).

popupActionRect

Rectangle for the icon associated with the .popupClickArea. This icon is an arrow indicating that the command button has a popup area.

Constructors

Link copied to clipboard
fun CommandButtonLayoutInfo(fullSize: Size, actionClickArea: Rect, popupClickArea: Rect, separatorArea: Rect, iconRect: Rect, textLayoutInfoList: List<CommandButtonLayoutManager.TextLayoutInfo>, extraTextLayoutInfoList: List<CommandButtonLayoutManager.TextLayoutInfo>, popupActionRect: Rect)

Properties

Link copied to clipboard
val actionClickArea: Rect
Link copied to clipboard
Link copied to clipboard
val fullSize: Size
Link copied to clipboard
val iconRect: Rect
Link copied to clipboard
val popupActionRect: Rect
Link copied to clipboard
val popupClickArea: Rect
Link copied to clipboard
val separatorArea: Rect
Link copied to clipboard