~ubuntu-branches/ubuntu/saucy/mapserver/saucy-security

« back to all changes in this revision

Viewing changes to mapscript/csharp/fillStyleObj.cs

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-12-23 14:02:06 UTC
  • mfrom: (26.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111223140206-n3h9t2hsa8hyslmu
Tags: 6.0.1-2
Added missed stuff for libmapscript-perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ----------------------------------------------------------------------------
2
 
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.36
4
 
 *
5
 
 * Do not make changes to this file unless you know what you are doing--modify
6
 
 * the SWIG interface file instead.
7
 
 * ----------------------------------------------------------------------------- */
8
 
 
9
 
 
10
 
using System;
11
 
using System.Runtime.InteropServices;
12
 
 
13
 
public class fillStyleObj : IDisposable {
14
 
  private HandleRef swigCPtr;
15
 
  protected bool swigCMemOwn;
16
 
  protected object swigParentRef;
17
 
  
18
 
  protected static object ThisOwn_true() { return null; }
19
 
  protected object ThisOwn_false() { return this; }
20
 
 
21
 
  internal fillStyleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
22
 
    swigCMemOwn = cMemoryOwn;
23
 
    swigParentRef = parent;
24
 
    swigCPtr = new HandleRef(this, cPtr);
25
 
  }
26
 
 
27
 
  internal static HandleRef getCPtr(fillStyleObj obj) {
28
 
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29
 
  }
30
 
  internal static HandleRef getCPtrAndDisown(fillStyleObj obj, object parent) {
31
 
    if (obj != null)
32
 
    {
33
 
      obj.swigCMemOwn = false;
34
 
      obj.swigParentRef = parent;
35
 
      return obj.swigCPtr;
36
 
    }
37
 
    else
38
 
    {
39
 
      return new HandleRef(null, IntPtr.Zero);
40
 
    }
41
 
  }
42
 
  internal static HandleRef getCPtrAndSetReference(fillStyleObj obj, object parent) {
43
 
    if (obj != null)
44
 
    {
45
 
      obj.swigParentRef = parent;
46
 
      return obj.swigCPtr;
47
 
    }
48
 
    else
49
 
    {
50
 
      return new HandleRef(null, IntPtr.Zero);
51
 
    }
52
 
  }
53
 
 
54
 
  ~fillStyleObj() {
55
 
    Dispose();
56
 
  }
57
 
 
58
 
  public virtual void Dispose() {
59
 
  lock(this) {
60
 
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
61
 
        swigCMemOwn = false;
62
 
        mapscriptPINVOKE.delete_fillStyleObj(swigCPtr);
63
 
      }
64
 
      swigCPtr = new HandleRef(null, IntPtr.Zero);
65
 
      swigParentRef = null;
66
 
      GC.SuppressFinalize(this);
67
 
    }
68
 
  }
69
 
 
70
 
  public override bool Equals(object obj) {
71
 
    if (obj == null)
72
 
        return false;
73
 
    if (this.GetType() != obj.GetType())
74
 
        return false;
75
 
    return swigCPtr.Handle.Equals(fillStyleObj.getCPtr((fillStyleObj)obj).Handle);
76
 
  }
77
 
 
78
 
  public override int GetHashCode() {
79
 
    return swigCPtr.Handle.GetHashCode();
80
 
  }
81
 
 
82
 
  public colorObj color {
83
 
    set {
84
 
      mapscriptPINVOKE.fillStyleObj_color_set(swigCPtr, colorObj.getCPtr(value));
85
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
86
 
    } 
87
 
    get {
88
 
      IntPtr cPtr = mapscriptPINVOKE.fillStyleObj_color_get(swigCPtr);
89
 
      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
90
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
91
 
      return ret;
92
 
    } 
93
 
  }
94
 
 
95
 
  public SWIGTYPE_p_void tile {
96
 
    set {
97
 
      mapscriptPINVOKE.fillStyleObj_tile_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
98
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
99
 
    } 
100
 
    get {
101
 
      IntPtr cPtr = mapscriptPINVOKE.fillStyleObj_tile_get(swigCPtr);
102
 
      SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false, ThisOwn_false());
103
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
104
 
      return ret;
105
 
    } 
106
 
  }
107
 
 
108
 
  public fillStyleObj() : this(mapscriptPINVOKE.new_fillStyleObj(), true, null) {
109
 
    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
110
 
  }
111
 
 
112
 
}