C# Класс SadConsole.Input.MouseInfo

Processes mouse input data.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Cell Cell
Console IConsole
ConsoleLocation Microsoft.Xna.Framework.Point
ScreenLocation Microsoft.Xna.Framework.Point
WorldLocation Microsoft.Xna.Framework.Point

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

Метод Описание
Clone ( ) : MouseInfo

Returns a clone of this object.

Fill ( IConsole data ) : void

Sets the WorldLocation and ConsoleLocation properties based on the cell size of the provided console. If absolute positioning is used on the console, then the properties will represent pixels.

This method alters the data of the mouse information based on the provided console. It

ProcessMouse ( GameTime gameTime ) : void

Fills out the state of the mouse.

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

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

Returns a clone of this object.
public Clone ( ) : MouseInfo
Результат MouseInfo

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

Sets the WorldLocation and ConsoleLocation properties based on the cell size of the provided console. If absolute positioning is used on the console, then the properties will represent pixels.
This method alters the data of the mouse information based on the provided console. It
public Fill ( IConsole data ) : void
data IConsole The console to get the data from.
Результат void

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

Fills out the state of the mouse.
public ProcessMouse ( GameTime gameTime ) : void
gameTime GameTime
Результат void

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

Cell публичное свойство

The cell of the current console under the mouse.
public Cell Cell
Результат Cell

Console публичное свойство

The current console under the mouse.
public IConsole Console
Результат IConsole

ConsoleLocation публичное свойство

Which cell x,y the mouse is over on the console.
public Point,Microsoft.Xna.Framework ConsoleLocation
Результат Microsoft.Xna.Framework.Point

ScreenLocation публичное свойство

Where the mouse is located on the screen.
public Point,Microsoft.Xna.Framework ScreenLocation
Результат Microsoft.Xna.Framework.Point

WorldLocation публичное свойство

What cell in the gameworld (top-left of window is 0,0) the mouse is located.
public Point,Microsoft.Xna.Framework WorldLocation
Результат Microsoft.Xna.Framework.Point