C# Class 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.
Inheritance: Table, IInputListener
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
IInputListener ( Vector2 mousePos ) : bool
IInputListener ( int mouseWheelDelta ) : bool
IInputListener ( ) : void
IInputListener ( Vector2 mousePos ) : void

Method Details

Window() public méthode

public Window ( string title, Skin skin, string styleName = null ) : System
title string
skin Skin
styleName string
Résultat System

Window() public méthode

public Window ( string title, WindowStyle style ) : System
title string
style WindowStyle
Résultat System

draw() public méthode

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
Résultat void

drawBackground() protected méthode

protected drawBackground ( Graphics graphics, float parentAlpha, float x, float y ) : void
graphics Graphics
parentAlpha float
x float
y float
Résultat void

drawStageBackground() protected méthode

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
Résultat void

getPrefWidth() public méthode

public getPrefWidth ( ) : float
Résultat float

getStyle() public méthode

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

getTitleLabel() public méthode

public getTitleLabel ( ) : Label
Résultat Label

getTitleTable() public méthode

public getTitleTable ( ) : Table
Résultat Table

hit() public méthode

public hit ( Vector2 point ) : Element
point Vector2
Résultat Element

isDragging() public méthode

public isDragging ( ) : bool
Résultat bool

isMovable() public méthode

public isMovable ( ) : bool
Résultat bool

isResizable() public méthode

public isResizable ( ) : bool
Résultat bool

keepWithinStage() public méthode

public keepWithinStage ( ) : void
Résultat void

positionChanged() protected méthode

protected positionChanged ( ) : void
Résultat void

setKeepWithinStage() public méthode

public setKeepWithinStage ( bool keepWithinStage ) : Window
keepWithinStage bool
Résultat Window

setMovable() public méthode

public setMovable ( bool isMovable ) : Window
isMovable bool
Résultat Window

setResizable() public méthode

public setResizable ( bool isResizable ) : Window
isResizable bool
Résultat Window

setResizeBorderSize() public méthode

public setResizeBorderSize ( int resizeBorderSize ) : Window
resizeBorderSize int
Résultat Window

setStyle() public méthode

public setStyle ( WindowStyle style ) : void
style WindowStyle
Résultat void

sizeChanged() protected méthode

protected sizeChanged ( ) : void
Résultat void