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
Показать файл Открыть проект

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

Метод Описание
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