UI component to present a pattern table, and optionally allow the user to select a pattern.
More...
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 |
( |
|
) |
|
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:
-
void Romulus.PatternTableControl.EndUpdate |
( |
|
) |
|
Call after BeginUpdate, when done updating.
override Size Romulus.PatternTableControl.GetPreferredSize |
( |
Size |
proposedSize |
) |
|
Implementation detail.
- Parameters:
-
- Returns:
override void Romulus.PatternTableControl.OnMouseDown |
( |
MouseEventArgs |
e |
) |
[protected] |
Implementation detail.
- Parameters:
-
Property Documentation
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:
- D:/VS/Romulus/RomulusPublic/PatternTableControl.cs