C# Класс AutoAsparagus.PopupMenuDrawable

A drawable that draws a popup menu.
Наследование: IDrawable
Показать файл Открыть проект

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

Метод Описание
AddOption ( string text ) : IButton

Adds a new option to the popup menu.

AddSeparator ( ) : void

Adds a separator to the popup menu.

Destroy ( ) : void

Destroys this drawable. This must always be called before disposing of this drawable.

Draw ( Vector2 position ) : Vector2
PopupMenuDrawable ( ) : System
Update ( ) : void

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

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

Adds a new option to the popup menu.
public AddOption ( string text ) : IButton
text string The text of the option.
Результат IButton

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

Adds a separator to the popup menu.
public AddSeparator ( ) : void
Результат void

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

Destroys this drawable. This must always be called before disposing of this drawable.
public Destroy ( ) : void
Результат void

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

public Draw ( Vector2 position ) : Vector2
position Vector2
Результат Vector2

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

public PopupMenuDrawable ( ) : System
Результат System

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

public Update ( ) : void
Результат void