Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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;*/
 }
Ejemplo n.º 4
0
        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;*/
        }
Ejemplo n.º 5
0
 /// <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;
 }
Ejemplo n.º 6
0
 /// <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;
 }
Ejemplo n.º 7
0
 /// <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)
 {
 }
Ejemplo n.º 8
0
 /// <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)
 {
 }
Ejemplo n.º 9
0
 /// <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)
 {
 }
Ejemplo n.º 10
0
 /// <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;
 }
Ejemplo n.º 11
0
 /// <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;
 }
Ejemplo n.º 12
0
 /// <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)
 {
 }
Ejemplo n.º 13
0
 /// <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)
 {
 }
Ejemplo n.º 14
0
 /// <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)
 {
 }