CommandButtonLayoutInfo

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

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.