Classes | Public Member Functions | Protected Member Functions | Properties | Events

Romulus.PatternTableControl Class Reference

UI component to present a pattern table, and optionally allow the user to select a pattern. More...

Inheritance diagram for Romulus.PatternTableControl:
iLab.InterpolatedBox

List of all members.

Classes

class  PatternTableSelection

Public Member Functions

 PatternTableControl ()
 Creates a new PatternTableControl.
override Size GetPreferredSize (Size proposedSize)
 Implementation detail.
void BeginUpdate ()
 Call before updating to prevent extra redraws.
void EndUpdate ()
 Call after BeginUpdate, when done updating.

Protected Member Functions

override void OnMouseDown (MouseEventArgs e)
 Implementation detail.
override void Dispose (bool disposing)
 Frees resources.

Properties

SinglePalette Palette [get, set]
 Gets/sets the palette to use.
Bitmap RenderedPatterns [get]
 Returns a 32-bpp image of the rendered patterns with the specified palette.
Bitmap Patterns [get, set]
 Gets/sets the pattern table.
int SelectedPatternIndex [get, set]
 Gets/sets the index of the selected pattern.

Events

EventHandler PatternSelected
 Occurs when the user selects a pattern via the UI.
EventHandler SelectionChanged
 Occurs when the SelectedPatternIndex property's value changes.

Detailed Description

UI component to present a pattern table, and optionally allow the user to select a pattern.


Constructor & Destructor Documentation

Romulus.PatternTableControl.PatternTableControl (  ) 

Creates a new PatternTableControl.


Member Function Documentation

void Romulus.PatternTableControl.BeginUpdate (  ) 

Call before updating to prevent extra redraws.

override void Romulus.PatternTableControl.Dispose ( bool  disposing  )  [protected]

Frees resources.

Parameters:
disposing 
void Romulus.PatternTableControl.EndUpdate (  ) 

Call after BeginUpdate, when done updating.

override Size Romulus.PatternTableControl.GetPreferredSize ( Size  proposedSize  ) 

Implementation detail.

Parameters:
proposedSize 
Returns:
override void Romulus.PatternTableControl.OnMouseDown ( MouseEventArgs  e  )  [protected]

Implementation detail.

Parameters:
e 

Property Documentation

SinglePalette Romulus.PatternTableControl.Palette [get, set]

Gets/sets the palette to use.

Bitmap Romulus.PatternTableControl.Patterns [get, set]

Gets/sets the pattern table.

Bitmap Romulus.PatternTableControl.RenderedPatterns [get]

Returns a 32-bpp image of the rendered patterns with the specified palette.

int Romulus.PatternTableControl.SelectedPatternIndex [get, set]

Gets/sets the index of the selected pattern.


Event Documentation

EventHandler Romulus.PatternTableControl.PatternSelected

Occurs when the user selects a pattern via the UI.

EventHandler Romulus.PatternTableControl.SelectionChanged

Occurs when the SelectedPatternIndex property's value changes.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events