diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-04 21:04:32 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-04 21:04:32 +0100 |
| commit | 56383b7cadef47e34ba7dce0a676082544bccac7 (patch) | |
| tree | 317c935914ff270949fe0c8a32c2d042a05edf71 /src/GraphicObjects/GraphicObject.cs | |
| parent | 2d93d89034894255917733d9a38bfd7998805f4c (diff) | |
:book: tutorials and some small improvements (iml fragment loading helpers
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 2523810e..b7ca11f6 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -38,7 +38,7 @@ using Crow.IML; namespace Crow { /// <summary> - /// This is the base class for all the graphic trees elements + /// The base class for all the graphic tree elements. /// </summary> public class GraphicObject : ILayoutable, IValueChange, IDisposable { @@ -1375,7 +1375,7 @@ namespace Crow #region Rendering /// <summary> This is the common overridable drawing routine to create new widget </summary> - protected virtual void onDraw(Cairo.Context gr) + protected virtual void onDraw(Context gr) { #if DEBUG_UPDATE Debug.WriteLine (string.Format("OnDraw -> {0}", this.ToString ())); @@ -1400,13 +1400,13 @@ namespace Crow if (bmp != null) bmp.Dispose (); bmp = new ImageSurface (Format.Argb32, Slot.Width, Slot.Height); - using (Cairo.Context gr = new Cairo.Context (bmp)) { + using (Context gr = new Context (bmp)) { gr.Antialias = Interface.Antialias; onDraw (gr); } bmp.Flush (); } - protected virtual void UpdateCache(Cairo.Context ctx){ + protected virtual void UpdateCache(Context ctx){ #if DEBUG_UPDATE Debug.WriteLine (string.Format("UpdateCache -> {0}", this.ToString ())); #endif @@ -1425,7 +1425,7 @@ namespace Crow } /// <summary> Chained painting routine on the parent context of the actual cached version /// of the widget </summary> - public virtual void Paint (ref Cairo.Context ctx) + public virtual void Paint (ref Context ctx) { #if DEBUG_UPDATE Debug.WriteLine (string.Format("Paint -> {0}", this.ToString ())); @@ -1461,7 +1461,7 @@ namespace Crow LastPaintedSlot = Slot; } } - void paintDisabled(Cairo.Context gr, Rectangle rb){ + void paintDisabled(Context gr, Rectangle rb){ gr.Operator = Operator.Xor; gr.SetSourceRGBA (0.6, 0.6, 0.6, 0.3); gr.Rectangle (rb); |