~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI_Sharp/Widgets/Generate/MyGUI_Sharp_Widget.cs

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
        @file
 
3
        @author         Generate utility by Albert Semenov
 
4
        @date           01/2009
 
5
        @module
 
6
*/
 
7
 
 
8
using System;
 
9
using System.Runtime.InteropServices;
 
10
 
 
11
namespace MyGUI.Sharp
 
12
{
 
13
    public partial class Widget :
 
14
                BaseWidget
 
15
    {
 
16
        #region Widget
 
17
 
 
18
        protected override string GetWidgetType() { return "Widget"; }
 
19
 
 
20
        internal static BaseWidget RequestWrapWidget(BaseWidget _parent, IntPtr _widget)
 
21
        {
 
22
                        Widget widget = new Widget();
 
23
                        widget.WrapWidget(_parent, _widget);
 
24
            return widget;
 
25
        }
 
26
 
 
27
        internal static BaseWidget RequestCreateWidget(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 
28
        {
 
29
                        Widget widget = new Widget();
 
30
                        widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
 
31
            return widget;
 
32
        }
 
33
        
 
34
                #endregion
 
35
        
 
36
                
 
37
                //InsertPoint
 
38
                #region Event ChangeCoord
 
39
 
 
40
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
41
                private static extern void ExportWidgetEvent_AdviseChangeCoord(IntPtr _native, bool _advise);
 
42
 
 
43
                public delegate void HandleChangeCoord(
 
44
                        Widget _sender);
 
45
                        
 
46
                private HandleChangeCoord mEventChangeCoord;
 
47
                public event HandleChangeCoord EventChangeCoord
 
48
                {
 
49
                        add
 
50
                        {
 
51
                                if (ExportEventChangeCoord.mDelegate == null)
 
52
                                {
 
53
                                        ExportEventChangeCoord.mDelegate = new ExportEventChangeCoord.ExportHandle(OnExportChangeCoord);
 
54
                                        ExportEventChangeCoord.ExportWidgetEvent_DelegateChangeCoord(ExportEventChangeCoord.mDelegate);
 
55
                                }
 
56
 
 
57
                                if (mEventChangeCoord == null)
 
58
                                        ExportWidgetEvent_AdviseChangeCoord(Native, true);
 
59
                                mEventChangeCoord += value;
 
60
                        }
 
61
                        remove
 
62
                        {
 
63
                                mEventChangeCoord -= value;
 
64
                                if (mEventChangeCoord == null)
 
65
                                        ExportWidgetEvent_AdviseChangeCoord(Native, false);
 
66
                        }
 
67
                }
 
68
 
 
69
                private struct ExportEventChangeCoord
 
70
                {
 
71
                        [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
72
                        public static extern void ExportWidgetEvent_DelegateChangeCoord(ExportHandle _delegate);
 
73
                        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
 
74
                        public delegate void ExportHandle(
 
75
                                IntPtr _sender);
 
76
                                
 
77
                        public static ExportHandle mDelegate;
 
78
                }
 
79
 
 
80
                private static void OnExportChangeCoord(
 
81
                        IntPtr _sender)
 
82
                {
 
83
                        Widget sender = (Widget)BaseWidget.GetByNative(_sender);
 
84
 
 
85
                        if (sender.mEventChangeCoord != null)
 
86
                                sender.mEventChangeCoord(
 
87
                                        sender);
 
88
                }
 
89
 
 
90
                #endregion
 
91
                #region Event ChangeProperty
 
92
 
 
93
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
94
                private static extern void ExportWidgetEvent_AdviseChangeProperty(IntPtr _native, bool _advise);
 
95
 
 
96
                public delegate void HandleChangeProperty(
 
97
                        Widget _sender,
 
98
                        string _key,
 
99
                        string _value);
 
100
                        
 
101
                private HandleChangeProperty mEventChangeProperty;
 
102
                public event HandleChangeProperty EventChangeProperty
 
103
                {
 
104
                        add
 
105
                        {
 
106
                                if (ExportEventChangeProperty.mDelegate == null)
 
107
                                {
 
108
                                        ExportEventChangeProperty.mDelegate = new ExportEventChangeProperty.ExportHandle(OnExportChangeProperty);
 
109
                                        ExportEventChangeProperty.ExportWidgetEvent_DelegateChangeProperty(ExportEventChangeProperty.mDelegate);
 
110
                                }
 
111
 
 
112
                                if (mEventChangeProperty == null)
 
113
                                        ExportWidgetEvent_AdviseChangeProperty(Native, true);
 
114
                                mEventChangeProperty += value;
 
115
                        }
 
116
                        remove
 
117
                        {
 
118
                                mEventChangeProperty -= value;
 
119
                                if (mEventChangeProperty == null)
 
120
                                        ExportWidgetEvent_AdviseChangeProperty(Native, false);
 
121
                        }
 
122
                }
 
123
 
 
124
                private struct ExportEventChangeProperty
 
125
                {
 
126
                        [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
127
                        public static extern void ExportWidgetEvent_DelegateChangeProperty(ExportHandle _delegate);
 
128
                        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
 
129
                        public delegate void ExportHandle(
 
130
                                IntPtr _sender,
 
131
                                [MarshalAs(UnmanagedType.LPStr)] string _key,
 
132
                                [MarshalAs(UnmanagedType.LPStr)] string _value);
 
133
                                
 
134
                        public static ExportHandle mDelegate;
 
135
                }
 
136
 
 
137
                private static void OnExportChangeProperty(
 
138
                        IntPtr _sender,
 
139
                        string _key,
 
140
                        string _value)
 
141
                {
 
142
                        Widget sender = (Widget)BaseWidget.GetByNative(_sender);
 
143
 
 
144
                        if (sender.mEventChangeProperty != null)
 
145
                                sender.mEventChangeProperty(
 
146
                                        sender ,
 
147
                                        _key,
 
148
                                        _value);
 
149
                }
 
150
 
 
151
                #endregion
 
152
                #region Method SetWidgetStyle
 
153
 
 
154
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
155
                private static extern void ExportWidget_SetWidgetStyle__style__layer(IntPtr _native,
 
156
                        [MarshalAs(UnmanagedType.I4)] WidgetStyle _style,
 
157
                        [MarshalAs(UnmanagedType.LPStr)] string _layer);
 
158
 
 
159
                public void SetWidgetStyle(
 
160
                        WidgetStyle _style,
 
161
                        string _layer)
 
162
                {
 
163
                        ExportWidget_SetWidgetStyle__style__layer(Native,
 
164
                                _style,
 
165
                                _layer);
 
166
                }
 
167
 
 
168
                #endregion
 
169
                #region Method ChangeWidgetSkin
 
170
 
 
171
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
172
                private static extern void ExportWidget_ChangeWidgetSkin__skinName(IntPtr _native,
 
173
                        [MarshalAs(UnmanagedType.LPStr)] string _skinName);
 
174
 
 
175
                public void ChangeWidgetSkin(
 
176
                        string _skinName)
 
177
                {
 
178
                        ExportWidget_ChangeWidgetSkin__skinName(Native,
 
179
                                _skinName);
 
180
                }
 
181
 
 
182
                #endregion
 
183
                #region Method AttachToWidget
 
184
 
 
185
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
186
                private static extern void ExportWidget_AttachToWidget__parent__style__layer(IntPtr _native,
 
187
                        IntPtr _parent,
 
188
                        [MarshalAs(UnmanagedType.I4)] WidgetStyle _style,
 
189
                        [MarshalAs(UnmanagedType.LPStr)] string _layer);
 
190
 
 
191
                public void AttachToWidget(
 
192
                        Widget _parent,
 
193
                        WidgetStyle _style,
 
194
                        string _layer)
 
195
                {
 
196
                        ExportWidget_AttachToWidget__parent__style__layer(Native,
 
197
                                _parent.Native,
 
198
                                _style,
 
199
                                _layer);
 
200
                }
 
201
 
 
202
                #endregion
 
203
                #region Method DetachFromWidget
 
204
 
 
205
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
206
                private static extern void ExportWidget_DetachFromWidget__layer(IntPtr _native,
 
207
                        [MarshalAs(UnmanagedType.LPStr)] string _layer);
 
208
 
 
209
                public void DetachFromWidget(
 
210
                        string _layer)
 
211
                {
 
212
                        ExportWidget_DetachFromWidget__layer(Native,
 
213
                                _layer);
 
214
                }
 
215
 
 
216
                #endregion
 
217
                #region Method SetEnabledSilent
 
218
 
 
219
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
220
                private static extern void ExportWidget_SetEnabledSilent__value(IntPtr _native,
 
221
                        [MarshalAs(UnmanagedType.U1)] bool _value);
 
222
 
 
223
                public void SetEnabledSilent(
 
224
                        bool _value)
 
225
                {
 
226
                        ExportWidget_SetEnabledSilent__value(Native,
 
227
                                _value);
 
228
                }
 
229
 
 
230
                #endregion
 
231
                #region Method FindWidget
 
232
 
 
233
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
234
        
 
235
                private static extern IntPtr ExportWidget_FindWidget__name(IntPtr _native,
 
236
                        [MarshalAs(UnmanagedType.LPStr)] string _name);
 
237
 
 
238
                public Widget FindWidget(
 
239
                        string _name)
 
240
                {
 
241
                        return (Widget)BaseWidget.GetByNative(ExportWidget_FindWidget__name(Native,
 
242
                                _name));
 
243
                }
 
244
 
 
245
                #endregion
 
246
                #region Method GetChildAt
 
247
 
 
248
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
249
        
 
250
                private static extern IntPtr ExportWidget_GetChildAt__index(IntPtr _native,
 
251
                        uint _index);
 
252
 
 
253
                public Widget GetChildAt(
 
254
                        uint _index)
 
255
                {
 
256
                        return (Widget)BaseWidget.GetByNative(ExportWidget_GetChildAt__index(Native,
 
257
                                _index));
 
258
                }
 
259
 
 
260
                #endregion
 
261
                #region Method SetColour
 
262
 
 
263
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
264
                private static extern void ExportWidget_SetColour__value(IntPtr _native,
 
265
                        [In] ref Colour _value);
 
266
 
 
267
                public void SetColour(
 
268
                        Colour _value)
 
269
                {
 
270
                        ExportWidget_SetColour__value(Native,
 
271
                                ref _value);
 
272
                }
 
273
 
 
274
                #endregion
 
275
                #region Method SetRealCoord
 
276
 
 
277
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
278
                private static extern void ExportWidget_SetRealCoord__left__top__width__height(IntPtr _native,
 
279
                        float _left,
 
280
                        float _top,
 
281
                        float _width,
 
282
                        float _height);
 
283
 
 
284
                public void SetRealCoord(
 
285
                        float _left,
 
286
                        float _top,
 
287
                        float _width,
 
288
                        float _height)
 
289
                {
 
290
                        ExportWidget_SetRealCoord__left__top__width__height(Native,
 
291
                                _left,
 
292
                                _top,
 
293
                                _width,
 
294
                                _height);
 
295
                }
 
296
 
 
297
                #endregion
 
298
                #region Method SetRealSize
 
299
 
 
300
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
301
                private static extern void ExportWidget_SetRealSize__width__height(IntPtr _native,
 
302
                        float _width,
 
303
                        float _height);
 
304
 
 
305
                public void SetRealSize(
 
306
                        float _width,
 
307
                        float _height)
 
308
                {
 
309
                        ExportWidget_SetRealSize__width__height(Native,
 
310
                                _width,
 
311
                                _height);
 
312
                }
 
313
 
 
314
                #endregion
 
315
                #region Method SetRealPosition
 
316
 
 
317
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
318
                private static extern void ExportWidget_SetRealPosition__left__top(IntPtr _native,
 
319
                        float _left,
 
320
                        float _top);
 
321
 
 
322
                public void SetRealPosition(
 
323
                        float _left,
 
324
                        float _top)
 
325
                {
 
326
                        ExportWidget_SetRealPosition__left__top(Native,
 
327
                                _left,
 
328
                                _top);
 
329
                }
 
330
 
 
331
                #endregion
 
332
                #region Method SetRealCoord
 
333
 
 
334
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
335
                private static extern void ExportWidget_SetRealCoord__value(IntPtr _native,
 
336
                        [In] ref FloatCoord _value);
 
337
 
 
338
                public void SetRealCoord(
 
339
                        FloatCoord _value)
 
340
                {
 
341
                        ExportWidget_SetRealCoord__value(Native,
 
342
                                ref _value);
 
343
                }
 
344
 
 
345
                #endregion
 
346
                #region Method SetRealSize
 
347
 
 
348
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
349
                private static extern void ExportWidget_SetRealSize__value(IntPtr _native,
 
350
                        [In] ref FloatSize _value);
 
351
 
 
352
                public void SetRealSize(
 
353
                        FloatSize _value)
 
354
                {
 
355
                        ExportWidget_SetRealSize__value(Native,
 
356
                                ref _value);
 
357
                }
 
358
 
 
359
                #endregion
 
360
                #region Method SetRealPosition
 
361
 
 
362
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
363
                private static extern void ExportWidget_SetRealPosition__value(IntPtr _native,
 
364
                        [In] ref FloatPoint _value);
 
365
 
 
366
                public void SetRealPosition(
 
367
                        FloatPoint _value)
 
368
                {
 
369
                        ExportWidget_SetRealPosition__value(Native,
 
370
                                ref _value);
 
371
                }
 
372
 
 
373
                #endregion
 
374
                #region Method SetCoord
 
375
 
 
376
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
377
                private static extern void ExportWidget_SetCoord__left__top__width__height(IntPtr _native,
 
378
                        int _left,
 
379
                        int _top,
 
380
                        int _width,
 
381
                        int _height);
 
382
 
 
383
                public void SetCoord(
 
384
                        int _left,
 
385
                        int _top,
 
386
                        int _width,
 
387
                        int _height)
 
388
                {
 
389
                        ExportWidget_SetCoord__left__top__width__height(Native,
 
390
                                _left,
 
391
                                _top,
 
392
                                _width,
 
393
                                _height);
 
394
                }
 
395
 
 
396
                #endregion
 
397
                #region Method SetSize
 
398
 
 
399
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
400
                private static extern void ExportWidget_SetSize__width__height(IntPtr _native,
 
401
                        int _width,
 
402
                        int _height);
 
403
 
 
404
                public void SetSize(
 
405
                        int _width,
 
406
                        int _height)
 
407
                {
 
408
                        ExportWidget_SetSize__width__height(Native,
 
409
                                _width,
 
410
                                _height);
 
411
                }
 
412
 
 
413
                #endregion
 
414
                #region Method SetPosition
 
415
 
 
416
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
417
                private static extern void ExportWidget_SetPosition__left__top(IntPtr _native,
 
418
                        int _left,
 
419
                        int _top);
 
420
 
 
421
                public void SetPosition(
 
422
                        int _left,
 
423
                        int _top)
 
424
                {
 
425
                        ExportWidget_SetPosition__left__top(Native,
 
426
                                _left,
 
427
                                _top);
 
428
                }
 
429
 
 
430
                #endregion
 
431
                #region Property WidgetStyle
 
432
 
 
433
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
434
        
 
435
                private static extern WidgetStyle ExportWidget_GetWidgetStyle(IntPtr _native);
 
436
 
 
437
                public WidgetStyle WidgetStyle
 
438
                {
 
439
                        get { return ExportWidget_GetWidgetStyle(Native); }
 
440
                }
 
441
 
 
442
                #endregion
 
443
                #region Property ClientWidget
 
444
 
 
445
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
446
        
 
447
                private static extern IntPtr ExportWidget_GetClientWidget(IntPtr _native);
 
448
 
 
449
                public Widget ClientWidget
 
450
                {
 
451
                        get { return (Widget)BaseWidget.GetByNative(ExportWidget_GetClientWidget(Native)); }
 
452
                }
 
453
 
 
454
                #endregion
 
455
                #region Property ClientCoord
 
456
 
 
457
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
458
        
 
459
                private static extern IntPtr ExportWidget_GetClientCoord(IntPtr _native);
 
460
 
 
461
                public IntCoord ClientCoord
 
462
                {
 
463
                        get { return (IntCoord)Marshal.PtrToStructure(ExportWidget_GetClientCoord(Native), typeof(IntCoord)); }
 
464
                }
 
465
 
 
466
                #endregion
 
467
                #region Property InheritedEnabled
 
468
 
 
469
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
470
        
 
471
                private static extern bool ExportWidget_GetInheritedEnabled(IntPtr _native);
 
472
 
 
473
                public bool InheritedEnabled
 
474
                {
 
475
                        get { return ExportWidget_GetInheritedEnabled(Native); }
 
476
                }
 
477
 
 
478
                #endregion
 
479
                #region Property Enabled
 
480
 
 
481
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
482
        
 
483
                private static extern bool ExportWidget_GetEnabled(IntPtr _widget);
 
484
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
485
                private static extern void ExportWidget_SetEnabled(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
 
486
 
 
487
                public bool Enabled
 
488
                {
 
489
                        get { return ExportWidget_GetEnabled(Native); }
 
490
                        set { ExportWidget_SetEnabled(Native, value); }
 
491
                }
 
492
 
 
493
                #endregion
 
494
                #region Property ChildCount
 
495
 
 
496
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
497
        
 
498
                private static extern uint ExportWidget_GetChildCount(IntPtr _native);
 
499
 
 
500
                public uint ChildCount
 
501
                {
 
502
                        get { return ExportWidget_GetChildCount(Native); }
 
503
                }
 
504
 
 
505
                #endregion
 
506
                #region Property ParentSize
 
507
 
 
508
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
509
        
 
510
                private static extern IntPtr ExportWidget_GetParentSize(IntPtr _native);
 
511
 
 
512
                public IntSize ParentSize
 
513
                {
 
514
                        get { return (IntSize)Marshal.PtrToStructure(ExportWidget_GetParentSize(Native), typeof(IntSize)); }
 
515
                }
 
516
 
 
517
                #endregion
 
518
                #region Property Parent
 
519
 
 
520
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
521
        
 
522
                private static extern IntPtr ExportWidget_GetParent(IntPtr _native);
 
523
 
 
524
                public Widget Parent
 
525
                {
 
526
                        get { return (Widget)BaseWidget.GetByNative(ExportWidget_GetParent(Native)); }
 
527
                }
 
528
 
 
529
                #endregion
 
530
                #region Property IsRootWidget
 
531
 
 
532
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
533
        
 
534
                private static extern bool ExportWidget_IsRootWidget(IntPtr _native);
 
535
 
 
536
                public bool IsRootWidget
 
537
                {
 
538
                        get { return ExportWidget_IsRootWidget(Native); }
 
539
                }
 
540
 
 
541
                #endregion
 
542
                #region Property InheritsAlpha
 
543
 
 
544
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
545
        
 
546
                private static extern bool ExportWidget_GetInheritsAlpha(IntPtr _widget);
 
547
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
548
                private static extern void ExportWidget_SetInheritsAlpha(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
 
549
 
 
550
                public bool InheritsAlpha
 
551
                {
 
552
                        get { return ExportWidget_GetInheritsAlpha(Native); }
 
553
                        set { ExportWidget_SetInheritsAlpha(Native, value); }
 
554
                }
 
555
 
 
556
                #endregion
 
557
                #region Property Alpha
 
558
 
 
559
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
560
        
 
561
                private static extern float ExportWidget_GetAlpha(IntPtr _widget);
 
562
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
563
                private static extern void ExportWidget_SetAlpha(IntPtr _widget, float _value);
 
564
 
 
565
                public float Alpha
 
566
                {
 
567
                        get { return ExportWidget_GetAlpha(Native); }
 
568
                        set { ExportWidget_SetAlpha(Native, value); }
 
569
                }
 
570
 
 
571
                #endregion
 
572
                #region Property Align
 
573
 
 
574
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
575
        
 
576
                private static extern Align ExportWidget_GetAlign(IntPtr _widget);
 
577
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
578
                private static extern void ExportWidget_SetAlign(IntPtr _widget, [MarshalAs(UnmanagedType.I4)] Align _value);
 
579
 
 
580
                public Align Align
 
581
                {
 
582
                        get { return ExportWidget_GetAlign(Native); }
 
583
                        set { ExportWidget_SetAlign(Native, value); }
 
584
                }
 
585
 
 
586
                #endregion
 
587
                #region Property InheritedVisible
 
588
 
 
589
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
590
        
 
591
                private static extern bool ExportWidget_GetInheritedVisible(IntPtr _native);
 
592
 
 
593
                public bool InheritedVisible
 
594
                {
 
595
                        get { return ExportWidget_GetInheritedVisible(Native); }
 
596
                }
 
597
 
 
598
                #endregion
 
599
                #region Property Visible
 
600
 
 
601
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
602
        
 
603
                private static extern bool ExportWidget_GetVisible(IntPtr _widget);
 
604
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
605
                private static extern void ExportWidget_SetVisible(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
 
606
 
 
607
                public bool Visible
 
608
                {
 
609
                        get { return ExportWidget_GetVisible(Native); }
 
610
                        set { ExportWidget_SetVisible(Native, value); }
 
611
                }
 
612
 
 
613
                #endregion
 
614
                #region Property Name
 
615
 
 
616
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
617
        
 
618
                private static extern IntPtr ExportWidget_GetName(IntPtr _native);
 
619
 
 
620
                public string Name
 
621
                {
 
622
                        get { return Marshal.PtrToStringAnsi(ExportWidget_GetName(Native)); }
 
623
                }
 
624
 
 
625
                #endregion
 
626
                
 
627
    }
 
628
}