public CairoFrameWidget(IDrawTheory theory) { this.engine = new CairoEngine (theory); this.Theory = theory; this.Theory.Changed += HandleChanged; this.CanFocus = true; this.Activate (); foreach (EventType type in theory.GetHookTypes ()) { this.AddEvents ((int)type); } }
public CairoFrameWidget(IDrawTheory theory) { this.engine = new CairoEngine(theory); this.Theory = theory; this.Theory.Changed += HandleChanged; this.CanFocus = true; this.Activate(); foreach (EventType type in theory.GetHookTypes()) { this.AddEvents((int)type); } }
public GLFrameWidget(IDrawTheory theory) : base() { this.Name = "glwidget1"; this.SingleBuffer = false; this.ColorBPP = 0; this.AccumulatorBPP = 0; this.DepthBPP = 0; this.StencilBPP = 0; this.Samples = 0; this.Stereo = false; this.GlVersionMajor = 0; this.GlVersionMinor = 0; this.Theory = theory; this.Theory.Changed += HandleChanged; /*this.CanFocus = true; this.Activate (); foreach (EventType type in theory.GetHookTypes ()) { this.AddEvents ((int)type); } this.SingleBuffer = true; this.DoubleBuffered = true;*/ }
public GLFrameWidget(IDrawTheory theory) : base() { this.Name = "glwidget1"; this.SingleBuffer = false; this.ColorBPP = 0; this.AccumulatorBPP = 0; this.DepthBPP = 0; this.StencilBPP = 0; this.Samples = 0; this.Stereo = false; this.GlVersionMajor = 0; this.GlVersionMinor = 0; this.Theory = theory; this.Theory.Changed += HandleChanged; /*this.CanFocus = true; * this.Activate (); * foreach (EventType type in theory.GetHookTypes ()) { * this.AddEvents ((int)type); * } * this.SingleBuffer = true; * this.DoubleBuffered = true;*/ }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Core.DrawTheorySensitiveBase"/> class with a given initial <see cref="IDrawTheory"/> instance. /// </summary> /// <param name='theory'> /// The initial draw theory. /// </param> protected DrawTheorySensitiveBase(IDrawTheory theory) { this.Theory = theory; }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Engines.HttpEngine"/> class with a specified <see cref="TcpClient"/> and <see cref="IDrawTheory"/>. /// </summary> /// <param name='client'> /// A <see cref="TcpClient"/> instance that contains information about the page request and a <see cref="Stream"/> to write a response back. /// </param> /// <param name='theory'> /// The intial <see cref="IDrawTheory"/> instance that contains the set of <see cref="IdpGie.Shapes.IShape"/> instances. /// </param> public HttpEngine(TcpClient client, IDrawTheory theory) : base(theory) { this.client = client; }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Engines.Engine"/> class with a given initial <see cref="IDrawTheory"/>. /// </summary> /// <param name='theory'> /// The given initial <see cref="IDrawTheory"/> that feeds the <see cref="IEngine"/> with <see cref="IdpGie.Shapes.IShape"/> instances. /// </param> protected Engine(IDrawTheory theory) : base(theory) { }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Engines.CairoEngine"/> class with a specified initial <see cref="IDrawTheory"/> and <see cref="Context"/>. /// </summary> /// <param name='theory'> /// The initial <see cref="IDrawTheory"/> instance. /// </param> /// <param name='context'> /// The initial <see cref="Context"/> to render <see cref="IdpGie.Shapes.IShape"/> instances to. /// </param> public CairoEngine(IDrawTheory theory, Context context) : base(theory) { }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Engines.CairoEngine"/> class with a specified initial <see cref="IDrawTheory"/>. /// </summary> /// <param name='theory'> /// The initial <see cref="IDrawTheory"/> instance. /// </param> public CairoEngine(IDrawTheory theory) : this(theory,null) { }
/// <summary> /// Initializes a new instance of the <see cref="IdpGie.Engines.CairoEngine"/> class with a specified initial <see cref="IDrawTheory"/>. /// </summary> /// <param name='theory'> /// The initial <see cref="IDrawTheory"/> instance. /// </param> public CairoEngine(IDrawTheory theory) : this(theory, null) { }