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
IBitmapImageObject 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
stringLabel of the checkbox
initialValue
boolInitial value of the checkbox
changed
ChangedEventHandlerDelegate called when the value is changed
Returns
- IWidgetCheckable
Widget
AddImageView(IImage)
Adds an image view to the window
IWidgetItem AddImageView(IImage image)
Parameters
image
IImageObject implementing the IImage interface
Returns
- IWidgetItem
Widget
AddLabel(string)
Add a label to the window
IWidgetLabel AddLabel(string label)
Parameters
label
stringLabel text
Returns
- IWidgetLabel
Widget
AddPaletteWidget(IBitmapPalette)
Adds a palette widget to the window
IWidgetItem AddPaletteWidget(IBitmapPalette palette)
Parameters
palette
IBitmapPaletteObject 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
stringLavel of the slider
initialValue
intInitial value of the slider
min
intMinimum value of the slider
max
intMaximum value of the slider
changed
ChangedEventHandlerDelegate 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
ITileMapObject implementing the ITileMap interface
Returns
- IWidgetItem
Widget
AddTilePaletteWidget(TilePaletteStore)
Adds a tile palette editor to the window
IWidgetItem AddTilePaletteWidget(TilePaletteStore tilePalette)
Parameters
tilePalette
TilePaletteStoreTilePaletteStore 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