C# Класс SadConsole.Consoles.TextSurfaceView

Наследование: ITextSurfaceRendered
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
cells Cell[]
renderArea Microsoft.Xna.Framework.Rectangle
renderRects Microsoft.Xna.Framework.Rectangle[]

Private Properties

Свойство Тип Описание

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

Метод Описание
Hydrate ( ITextSurfaceRendered surface ) : void

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.

Hydrate ( ITextSurfaceRendered surface, Rectangle view ) : void

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.

Load ( string file, ITextSurfaceRendered surfaceHydrate ) : TextSurfaceView

Loads a TextSurfaceView from a file and existing ITextSurfaceRendered.

Save ( string file ) : void

Saves the serialized TextSurfaceView to a file.

TextSurfaceView ( ITextSurfaceRendered surface, Rectangle area ) : System

Creates a new surface view from an existing surface.

this ( int index ) : Cell

Gets a cell by index.

this ( int x, int y ) : Cell

Gets a cell based on its coordinates on the surface.

Защищенные методы

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

Keeps the text view data in sync with this surface.

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

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

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.
public Hydrate ( ITextSurfaceRendered surface ) : void
surface ITextSurfaceRendered The surface to associate with the view.
Результат void

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

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.
public Hydrate ( ITextSurfaceRendered surface, Rectangle view ) : void
surface ITextSurfaceRendered The surface to associate with the view.
view Microsoft.Xna.Framework.Rectangle The sub view of the .
Результат void

Load() публичный статический Метод

Loads a TextSurfaceView from a file and existing ITextSurfaceRendered.
public static Load ( string file, ITextSurfaceRendered surfaceHydrate ) : TextSurfaceView
file string The source file.
surfaceHydrate ITextSurfaceRendered The surface this view was originally from.
Результат TextSurfaceView

ResetArea() защищенный Метод

Keeps the text view data in sync with this surface.
protected ResetArea ( ) : void
Результат void

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

Saves the serialized TextSurfaceView to a file.
public Save ( string file ) : void
file string The destination file.
Результат void

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

Creates a new surface view from an existing surface.
public TextSurfaceView ( ITextSurfaceRendered surface, Rectangle area ) : System
surface ITextSurfaceRendered The source cell data.
area Microsoft.Xna.Framework.Rectangle The area of the text surface.
Результат System

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

Gets a cell by index.
public this ( int index ) : Cell
index int The index of the cell.
Результат Cell

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

Gets a cell based on its coordinates on the surface.
public this ( int x, int y ) : Cell
x int The X coordinate.
y int The Y coordinate.
Результат Cell

Описание свойств

cells защищенное свойство

protected Cell[] cells
Результат Cell[]

renderArea защищенное свойство

protected Rectangle,Microsoft.Xna.Framework renderArea
Результат Microsoft.Xna.Framework.Rectangle

renderRects защищенное свойство

protected Rectangle[],Microsoft.Xna.Framework renderRects
Результат Microsoft.Xna.Framework.Rectangle[]