1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
11
using System.Runtime.InteropServices;
13
public class fillStyleObj : IDisposable {
14
private HandleRef swigCPtr;
15
protected bool swigCMemOwn;
16
protected object swigParentRef;
18
protected static object ThisOwn_true() { return null; }
19
protected object ThisOwn_false() { return this; }
21
internal fillStyleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
22
swigCMemOwn = cMemoryOwn;
23
swigParentRef = parent;
24
swigCPtr = new HandleRef(this, cPtr);
27
internal static HandleRef getCPtr(fillStyleObj obj) {
28
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30
internal static HandleRef getCPtrAndDisown(fillStyleObj obj, object parent) {
33
obj.swigCMemOwn = false;
34
obj.swigParentRef = parent;
39
return new HandleRef(null, IntPtr.Zero);
42
internal static HandleRef getCPtrAndSetReference(fillStyleObj obj, object parent) {
45
obj.swigParentRef = parent;
50
return new HandleRef(null, IntPtr.Zero);
58
public virtual void Dispose() {
60
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
62
mapscriptPINVOKE.delete_fillStyleObj(swigCPtr);
64
swigCPtr = new HandleRef(null, IntPtr.Zero);
66
GC.SuppressFinalize(this);
70
public override bool Equals(object obj) {
73
if (this.GetType() != obj.GetType())
75
return swigCPtr.Handle.Equals(fillStyleObj.getCPtr((fillStyleObj)obj).Handle);
78
public override int GetHashCode() {
79
return swigCPtr.Handle.GetHashCode();
82
public colorObj color {
84
mapscriptPINVOKE.fillStyleObj_color_set(swigCPtr, colorObj.getCPtr(value));
85
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
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();
95
public SWIGTYPE_p_void tile {
97
mapscriptPINVOKE.fillStyleObj_tile_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
98
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
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();
108
public fillStyleObj() : this(mapscriptPINVOKE.new_fillStyleObj(), true, null) {
109
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();