Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
cursordef.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class cursordef : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public cursordef(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(cursordef obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~cursordef() {
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public short cursorstyle {
54 set {
57 }
58 get {
61 return ret;
62 }
63 }
64
65 public double[] cursorpnt1 {
66 set { PCADGlobalsPINVOKE.cursordef_cursorpnt1_set(swigCPtr, value /*DOUBLE_FIXED_ARRAY*/); /*DOUBLE_FIXED_ARRAY*/}
67
68 get { return Teigha.Core.Helpers.UnMarshalDoubleFixedArray(PCADGlobalsPINVOKE.cursordef_cursorpnt1_get(swigCPtr), 3); /*DOUBLE_FIXED_ARRAY*/ }
69
70 }
71
72 public double[] cursorpnt2 {
73 set { PCADGlobalsPINVOKE.cursordef_cursorpnt2_set(swigCPtr, value /*DOUBLE_FIXED_ARRAY*/); /*DOUBLE_FIXED_ARRAY*/}
74
75 get { return Teigha.Core.Helpers.UnMarshalDoubleFixedArray(PCADGlobalsPINVOKE.cursordef_cursorpnt2_get(swigCPtr), 3); /*DOUBLE_FIXED_ARRAY*/ }
76
77 }
78
79 public cursordef() : this(PCADGlobalsPINVOKE.new_cursordef(), true) {
81 }
82
83}
84
85}
static IntPtr cursordef_cursorpnt1_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void cursordef_cursorpnt1_set(global::System.Runtime.InteropServices.HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray, SizeConst=3)]double[] jarg2)
static void cursordef_cursorstyle_set(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static IntPtr cursordef_cursorpnt2_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static short cursordef_cursorstyle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_cursordef(global::System.Runtime.InteropServices.HandleRef jarg1)
static void cursordef_cursorpnt2_set(global::System.Runtime.InteropServices.HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray, SizeConst=3)]double[] jarg2)
static HandleRef getCPtr(cursordef obj)
Definition: cursordef.cs:28
virtual void Dispose(bool disposing)
Definition: cursordef.cs:41
cursordef(IntPtr cPtr, bool cMemoryOwn)
Definition: cursordef.cs:23