SimpleEffectDialog has many built in controls for common settings types. Here is the complete list.
Int/Double - Slider
public void MyData : EffectData
{
public int Value;
public double Value2;
}
Supported Attributes:
- [Caption]
- [Hint]
- [MinimumValue]
- [MaximumValue]
- [IncrementValue]
- [DigitsValue] (double only)
Double - Angle
If your double is named "Angle" or "Rotation", it will be an angle picker instead of a slider.
public void MyData : EffectData
{
public double Angle;
}
Supported Attributes:
Bool - CheckBox
public void MyData : EffectData
{
public bool Inverted;
}
Supported Attributes:
Int - Seed
If your int is named "Seed", it will be a button instead of a slider.
public void MyData : EffectData
{
public int Seed;
}
Supported Attributes:
Enum - ComboBox
public enum Color
{
Red,
Green,
Blue
}
public class MyData : EffectData
{
public Color Color = Color.Blue;
}
Supported Attributes:
Gdk.Point/Cairo.PointD - Point Picker
public void MyData : EffectData
{
public Gdk.Point Point;
public Cairo.PointD Point2;
}
Supported Attributes: