Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ViewRef.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 ViewRef : 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 ViewRef(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(ViewRef obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~ViewRef() {
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 ViewRef() : this(GlobalsPINVOKE.new_ViewRef__SWIG_0(), true) {
53 }
54
55 public ViewRef(OdGsViewImpl first, uint second) : this(GlobalsPINVOKE.new_ViewRef__SWIG_1(OdGsViewImpl.getCPtr(first), second), true) {
57 }
58
59 public ViewRef(ViewRef other) : this(GlobalsPINVOKE.new_ViewRef__SWIG_2(ViewRef.getCPtr(other)), true) {
61 }
62
64 set {
67 }
68 get {
69 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewRef_first_get(swigCPtr);
70 OdGsViewImpl ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGsViewImpl(cPtr, false);
72 return ret;
73 }
74 }
75
76 public uint second {
77 set {
80 }
81 get {
82 uint ret = GlobalsPINVOKE.ViewRef_second_get(swigCPtr);
84 return ret;
85 }
86 }
87
88}
89
90}
static global::System.Exception Retrieve()
static void delete_ViewRef(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRef_first_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static IntPtr ViewRef_first_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint ViewRef_second_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRef_second_set(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static HandleRef getCPtr(OdGsViewImpl obj)
Definition: OdGsViewImpl.cs:26
virtual void Dispose(bool disposing)
Definition: ViewRef.cs:39
ViewRef(OdGsViewImpl first, uint second)
Definition: ViewRef.cs:55
ViewRef(IntPtr cPtr, bool cMemoryOwn)
Definition: ViewRef.cs:21
static HandleRef getCPtr(ViewRef obj)
Definition: ViewRef.cs:26
OdGsViewImpl first
Definition: ViewRef.cs:63
ViewRef(ViewRef other)
Definition: ViewRef.cs:59