Class IconButton | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class IconButton

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    IconButton
    Inherited Members
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class IconButton : StatelessWidget

    Constructors

    IconButton(Key, Single, EdgeInsets, Alignment, Widget, Color, Color, Color, Color, VoidCallback, String)

    Declaration
    public IconButton(Key key = null, float iconSize = 24F, EdgeInsets padding = null, Alignment alignment = null, Widget icon = null, Color color = null, Color highlightColor = null, Color splashColor = null, Color disableColor = null, VoidCallback onPressed = null, string tooltip = null)
    Parameters
    Type Name Description
    Key key
    System.Single iconSize
    EdgeInsets padding
    Alignment alignment
    Widget icon
    Color color
    Color highlightColor
    Color splashColor
    Color disableColor
    VoidCallback onPressed
    System.String tooltip

    Fields

    alignment

    Declaration
    public readonly Alignment alignment
    Field Value
    Type Description
    Alignment

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    disabledColor

    Declaration
    public readonly Color disabledColor
    Field Value
    Type Description
    Color

    highlightColor

    Declaration
    public readonly Color highlightColor
    Field Value
    Type Description
    Color

    icon

    Declaration
    public readonly Widget icon
    Field Value
    Type Description
    Widget

    iconSize

    Declaration
    public readonly float iconSize
    Field Value
    Type Description
    System.Single

    onPressed

    Declaration
    public readonly VoidCallback onPressed
    Field Value
    Type Description
    VoidCallback

    padding

    Declaration
    public readonly EdgeInsets padding
    Field Value
    Type Description
    EdgeInsets

    splashColor

    Declaration
    public readonly Color splashColor
    Field Value
    Type Description
    Color

    tooltip

    Declaration
    public readonly string tooltip
    Field Value
    Type Description
    System.String

    Methods

    build(BuildContext)

    Declaration
    public override Widget build(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    StatelessWidget.build(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023