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
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
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