C# 클래스 Nez.UI.Window

A table that can be dragged and resized. The top padding is used as the window's title height. The preferred size of a window is the preferred size of the title text and the children as laid out by the table. After adding children to the window, it can be convenient to call {@link #pack()} to size the window to the size of the children.
상속: Table, IInputListener
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
Window ( string title, Skin skin, string styleName = null ) : System
Window ( string title, WindowStyle style ) : System
draw ( Graphics graphics, float parentAlpha ) : void
getPrefWidth ( ) : float
getStyle ( ) : WindowStyle

Returns the window's style. Modifying the returned style may not have an effect until {@link #setStyle(WindowStyle)} is called

getTitleLabel ( ) : Label
getTitleTable ( ) : Table
hit ( Vector2 point ) : Element
isDragging ( ) : bool
isMovable ( ) : bool
isResizable ( ) : bool
keepWithinStage ( ) : void
setKeepWithinStage ( bool keepWithinStage ) : Window
setMovable ( bool isMovable ) : Window
setResizable ( bool isResizable ) : Window
setResizeBorderSize ( int resizeBorderSize ) : Window
setStyle ( WindowStyle style ) : void

보호된 메소드들

메소드 설명
drawBackground ( Graphics graphics, float parentAlpha, float x, float y ) : void
drawStageBackground ( Graphics graphics, float parentAlpha, float x, float y, float width, float height ) : void
positionChanged ( ) : void
sizeChanged ( ) : void

비공개 메소드들

메소드 설명
IInputListener ( Vector2 mousePos ) : bool
IInputListener ( int mouseWheelDelta ) : bool
IInputListener ( ) : void
IInputListener ( Vector2 mousePos ) : void

메소드 상세

Window() 공개 메소드

public Window ( string title, Skin skin, string styleName = null ) : System
title string
skin Skin
styleName string
리턴 System

Window() 공개 메소드

public Window ( string title, WindowStyle style ) : System
title string
style WindowStyle
리턴 System

draw() 공개 메소드

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
리턴 void

drawBackground() 보호된 메소드

protected drawBackground ( Graphics graphics, float parentAlpha, float x, float y ) : void
graphics Graphics
parentAlpha float
x float
y float
리턴 void

drawStageBackground() 보호된 메소드

protected drawStageBackground ( Graphics graphics, float parentAlpha, float x, float y, float width, float height ) : void
graphics Graphics
parentAlpha float
x float
y float
width float
height float
리턴 void

getPrefWidth() 공개 메소드

public getPrefWidth ( ) : float
리턴 float

getStyle() 공개 메소드

Returns the window's style. Modifying the returned style may not have an effect until {@link #setStyle(WindowStyle)} is called
public getStyle ( ) : WindowStyle
리턴 WindowStyle

getTitleLabel() 공개 메소드

public getTitleLabel ( ) : Label
리턴 Label

getTitleTable() 공개 메소드

public getTitleTable ( ) : Table
리턴 Table

hit() 공개 메소드

public hit ( Vector2 point ) : Element
point Vector2
리턴 Element

isDragging() 공개 메소드

public isDragging ( ) : bool
리턴 bool

isMovable() 공개 메소드

public isMovable ( ) : bool
리턴 bool

isResizable() 공개 메소드

public isResizable ( ) : bool
리턴 bool

keepWithinStage() 공개 메소드

public keepWithinStage ( ) : void
리턴 void

positionChanged() 보호된 메소드

protected positionChanged ( ) : void
리턴 void

setKeepWithinStage() 공개 메소드

public setKeepWithinStage ( bool keepWithinStage ) : Window
keepWithinStage bool
리턴 Window

setMovable() 공개 메소드

public setMovable ( bool isMovable ) : Window
isMovable bool
리턴 Window

setResizable() 공개 메소드

public setResizable ( bool isResizable ) : Window
isResizable bool
리턴 Window

setResizeBorderSize() 공개 메소드

public setResizeBorderSize ( int resizeBorderSize ) : Window
resizeBorderSize int
리턴 Window

setStyle() 공개 메소드

public setStyle ( WindowStyle style ) : void
style WindowStyle
리턴 void

sizeChanged() 보호된 메소드

protected sizeChanged ( ) : void
리턴 void