Table of Contents

Interface IWidget

Namespace
RetroEditor.Plugins
Assembly
RetroEditor.dll

Interface for creating widgets

public interface IWidget

Methods

AddBitmapWidget(IBitmapImage)

Adds a bitmap image editor to the window

IWidgetItem AddBitmapWidget(IBitmapImage image)

Parameters

image IBitmapImage

Object implmenting the IBitmapImage interface

Returns

IWidgetItem

Widget

AddCheckbox(string, bool, ChangedEventHandler)

Add a checkbox to the window

IWidgetCheckable AddCheckbox(string label, bool initialValue, ChangedEventHandler changed)

Parameters

label string

Label of the checkbox

initialValue bool

Initial value of the checkbox

changed ChangedEventHandler

Delegate called when the value is changed

Returns

IWidgetCheckable

Widget

AddImageView(IImage)

Adds an image view to the window

IWidgetItem AddImageView(IImage image)

Parameters

image IImage

Object implementing the IImage interface

Returns

IWidgetItem

Widget

AddLabel(string)

Add a label to the window

IWidgetLabel AddLabel(string label)

Parameters

label string

Label text

Returns

IWidgetLabel

Widget

AddPaletteWidget(IBitmapPalette)

Adds a palette widget to the window

IWidgetItem AddPaletteWidget(IBitmapPalette palette)

Parameters

palette IBitmapPalette

Object implementing the IBitmapPalette interface

Returns

IWidgetItem

Widget

AddSeperator()

Add a seperator bar to the window

IWidgetItem AddSeperator()

Returns

IWidgetItem

Widget

AddSlider(string, int, int, int, ChangedEventHandler)

Add a slider to the window

IWidgetRanged AddSlider(string label, int initialValue, int min, int max, ChangedEventHandler changed)

Parameters

label string

Lavel of the slider

initialValue int

Initial value of the slider

min int

Minimum value of the slider

max int

Maximum value of the slider

changed ChangedEventHandler

Delegate called when the value is changed

Returns

IWidgetRanged

Widget

AddTileMapWidget(ITileMap)

Adds a tile map editor to the window

IWidgetItem AddTileMapWidget(ITileMap tileMap)

Parameters

tileMap ITileMap

Object implementing the ITileMap interface

Returns

IWidgetItem

Widget

AddTilePaletteWidget(TilePaletteStore)

Adds a tile palette editor to the window

IWidgetItem AddTilePaletteWidget(TilePaletteStore tilePalette)

Parameters

tilePalette TilePaletteStore

TilePaletteStore object initialized with an ITilePalette object

Returns

IWidgetItem

Widget

SameLine()

Causes the next widget to be placed on the same line as the previous widget

IWidgetItem SameLine()

Returns

IWidgetItem

Widget