Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsDCRect.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 Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdGsDCRect : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGsDCRect(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGsDCRect obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGsDCRect() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdGsDCRect() : this(GlobalsPINVOKE.new_OdGsDCRect__SWIG_0(), true) {
53 }
54
55 public OdGsDCRect(OdGsDCPoint minPoint, OdGsDCPoint maxPoint) : this(GlobalsPINVOKE.new_OdGsDCRect__SWIG_1(OdGsDCPoint.getCPtr(minPoint), OdGsDCPoint.getCPtr(maxPoint)), true) {
57 }
58
59 public OdGsDCRect(int xMin, int xMax, int yMin, int yMax) : this(GlobalsPINVOKE.new_OdGsDCRect__SWIG_2(xMin, xMax, yMin, yMax), true) {
61 }
62
63 public OdGsDCRect(OdGsDCRect.NullFlag arg0) : this(GlobalsPINVOKE.new_OdGsDCRect__SWIG_3((int)arg0), true) {
65 }
66
67 public OdGsDCRect Assign(OdGsDCRect dcRect) {
68 OdGsDCRect ret = new OdGsDCRect(GlobalsPINVOKE.OdGsDCRect_Assign(swigCPtr, OdGsDCRect.getCPtr(dcRect)), false);
70 return ret;
71 }
72
73 public bool IsEqual(OdGsDCRect dcRect) {
74 bool ret = GlobalsPINVOKE.OdGsDCRect_IsEqual(swigCPtr, OdGsDCRect.getCPtr(dcRect));
76 return ret;
77 }
78
79 public bool IsNotEqual(OdGsDCRect dcRect) {
80 bool ret = GlobalsPINVOKE.OdGsDCRect_IsNotEqual(swigCPtr, OdGsDCRect.getCPtr(dcRect));
82 return ret;
83 }
84
85 public void set_null() {
88 }
89
90 public bool is_null() {
91 bool ret = GlobalsPINVOKE.OdGsDCRect_is_null(swigCPtr);
93 return ret;
94 }
95
96 public bool within(OdGsDCRect dcRect) {
97 bool ret = GlobalsPINVOKE.OdGsDCRect_within(swigCPtr, OdGsDCRect.getCPtr(dcRect));
99 return ret;
100 }
101
102 public void offset(int x, int y) {
103 GlobalsPINVOKE.OdGsDCRect_offset(swigCPtr, x, y);
105 }
106
107 public void intersectWith(OdGsDCRect dcRect, bool bValidate) {
110 }
111
112 public void intersectWith(OdGsDCRect dcRect) {
115 }
116
117 public void normalize() {
120 }
121
122 public bool isDisjoint(OdGsDCRect r) {
125 return ret;
126 }
127
129 set {
132 }
133 get {
134 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsDCRect_m_min_get(swigCPtr);
135 OdGsDCPoint ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGsDCPoint(cPtr, false);
137 return ret;
138 }
139 }
140
142 set {
145 }
146 get {
147 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsDCRect_m_max_get(swigCPtr);
148 OdGsDCPoint ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGsDCPoint(cPtr, false);
150 return ret;
151 }
152 }
153
158 public void vb_offset(int x, int y) { this.offset(x, y); }
159
160 public enum NullFlag {
161 Null
162 }
163
164}
165
166}
static global::System.Exception Retrieve()
static bool OdGsDCRect_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDCRect_m_max_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGsDCRect_isDisjoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDCRect_offset(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void OdGsDCRect_intersectWith__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static global::System.IntPtr OdGsDCRect_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGsDCRect(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGsDCRect_m_min_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsDCRect_m_min_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDCRect_set_null(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGsDCRect_within(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDCRect_intersectWith__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDCRect_normalize(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGsDCRect_m_max_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGsDCRect_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGsDCRect_is_null(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGsDCPoint obj)
Definition: OdGsDCPoint.cs:26
OdGsDCRect(OdGsDCRect.NullFlag arg0)
Definition: OdGsDCRect.cs:63
void intersectWith(OdGsDCRect dcRect)
Definition: OdGsDCRect.cs:112
void vb_offset(int x, int y)
Definition: OdGsDCRect.cs:158
void intersectWith(OdGsDCRect dcRect, bool bValidate)
Definition: OdGsDCRect.cs:107
bool within(OdGsDCRect dcRect)
Definition: OdGsDCRect.cs:96
OdGsDCRect(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGsDCRect.cs:21
bool IsEqual(OdGsDCRect dcRect)
Definition: OdGsDCRect.cs:73
void offset(int x, int y)
Definition: OdGsDCRect.cs:102
OdGsDCRect(int xMin, int xMax, int yMin, int yMax)
Definition: OdGsDCRect.cs:59
OdGsDCRect(OdGsDCPoint minPoint, OdGsDCPoint maxPoint)
Definition: OdGsDCRect.cs:55
OdGsDCRect Assign(OdGsDCRect dcRect)
Definition: OdGsDCRect.cs:67
static HandleRef getCPtr(OdGsDCRect obj)
Definition: OdGsDCRect.cs:26
bool IsNotEqual(OdGsDCRect dcRect)
Definition: OdGsDCRect.cs:79
virtual void Dispose(bool disposing)
Definition: OdGsDCRect.cs:39
bool isDisjoint(OdGsDCRect r)
Definition: OdGsDCRect.cs:122