C# Класс Nez.UI.ImageButton

A button with a child {@link Image} to display an image. This is useful when the button must be larger than the image and the image centered on the button. If the image is the size of the button, a {@link Button} without any children can be used, where the {@link Button.ButtonStyle#up}, {@link Button.ButtonStyle#down}, and {@link Button.ButtonStyle#checked} nine patches define the image.
Наследование: Button
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ImageButton ( IDrawable imageUp ) : System
ImageButton ( IDrawable imageUp, IDrawable imageDown ) : System
ImageButton ( IDrawable imageUp, IDrawable imageDown, IDrawable imageOver ) : System
ImageButton ( ImageButtonStyle style ) : System
ImageButton ( Skin skin, string styleName = null ) : System
draw ( Graphics graphics, float parentAlpha ) : void
getImage ( ) : Image
getImageCell ( ) : Cell
getStyle ( ) : ImageButtonStyle
setStyle ( ButtonStyle style ) : void

Приватные методы

Метод Описание
updateImage ( ) : void

Описание методов

ImageButton() публичный Метод

public ImageButton ( IDrawable imageUp ) : System
imageUp IDrawable
Результат System

ImageButton() публичный Метод

public ImageButton ( IDrawable imageUp, IDrawable imageDown ) : System
imageUp IDrawable
imageDown IDrawable
Результат System

ImageButton() публичный Метод

public ImageButton ( IDrawable imageUp, IDrawable imageDown, IDrawable imageOver ) : System
imageUp IDrawable
imageDown IDrawable
imageOver IDrawable
Результат System

ImageButton() публичный Метод

public ImageButton ( ImageButtonStyle style ) : System
style ImageButtonStyle
Результат System

ImageButton() публичный Метод

public ImageButton ( Skin skin, string styleName = null ) : System
skin Skin
styleName string
Результат System

draw() публичный Метод

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
Результат void

getImage() публичный Метод

public getImage ( ) : Image
Результат Image

getImageCell() публичный Метод

public getImageCell ( ) : Cell
Результат Cell

getStyle() публичный Метод

public getStyle ( ) : ImageButtonStyle
Результат ImageButtonStyle

setStyle() публичный Метод

public setStyle ( ButtonStyle style ) : void
style ButtonStyle
Результат void