DesktopButton

代表桌面风格按钮的小部件,具有悬停、按下和不同按钮类型(例如最小化、最大化、关闭)的不同视觉状态。

A widget representing a desktop-style button with different visual states for hovering, pressing, and different button types (e.g., minimize, maximize, close).

Props

decoratenametypedescription
animatoranimatorAnimatorHandles animations for the widget.
walkwalkWalkDefines how the widget should be positioned and sized within its parent.
redraw, livedraw_bgDrawDesktopButtonHandles the drawing properties of the desktop button, including its type and visual states.

See DrawDesktopButton

See Walk

See Animator

Event

namedescription
PressedTriggered when the button is pressed.
ClickedTriggered when the button is clicked.
ReleasedTriggered when the button is released.