wxrust 0.0.1-alpha

Binding for the wxCore library of the wxWidgets toolkit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
use super::*;

// wxNativeFontInfo
wxwidgets! {
    /// wxNativeFontInfo is platform-specific font representation: this class should be considered as an opaque font description only used by the native functions, the user code can only get the objects of this type from somewhere and pass it somewhere else (possibly save them somewhere using ToString() and restore them using FromString())
    /// - [`NativeFontInfo`] represents a C++ `wxNativeFontInfo` class instance which your code has ownership, [`NativeFontInfoIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NativeFontInfo`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNativeFontInfo` class's documentation](https://docs.wxwidgets.org/3.2/classwx_native_font_info.html) for more details.
    #[doc(alias = "wxNativeFontInfo")]
    #[doc(alias = "NativeFontInfo")]
    class NativeFontInfo
        = NativeFontInfoIsOwned<true>(wxNativeFontInfo) impl
        NativeFontInfoMethods
}
impl<const OWNED: bool> NativeFontInfoIsOwned<OWNED> {
    ///
    /// See [C++ `wxNativeFontInfo::wxNativeFontInfo()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_native_font_info.html#a1925fc4457120e9a1c9dbb3b2bd69f1c).
    pub fn new() -> NativeFontInfoIsOwned<OWNED> {
        unsafe { NativeFontInfoIsOwned(ffi::wxNativeFontInfo_new()) }
    }
    ///
    /// See [C++ `wxNativeFontInfo::wxNativeFontInfo()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_native_font_info.html#a1b1e2d352f84671443e652dc829d77a3).
    pub fn new_with_nativefontinfo<N: NativeFontInfoMethods>(
        info: &N,
    ) -> NativeFontInfoIsOwned<OWNED> {
        unsafe {
            let info = info.as_ptr();
            NativeFontInfoIsOwned(ffi::wxNativeFontInfo_new1(info))
        }
    }
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl Clone for NativeFontInfoIsOwned<false> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> Drop for NativeFontInfoIsOwned<OWNED> {
    fn drop(&mut self) {
        if OWNED {
            unsafe { ffi::wxNativeFontInfo_delete(self.0) }
        }
    }
}

// wxNavigationKeyEvent
wxwidgets! {
    /// This event class contains information about navigation events, generated by navigation keys such as tab and page down.
    /// - [`NavigationKeyEvent`] represents a C++ `wxNavigationKeyEvent` class instance which your code has ownership, [`NavigationKeyEventIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NavigationKeyEvent`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNavigationKeyEvent` class's documentation](https://docs.wxwidgets.org/3.2/classwx_navigation_key_event.html) for more details.
    #[doc(alias = "wxNavigationKeyEvent")]
    #[doc(alias = "NavigationKeyEvent")]
    class NavigationKeyEvent
        = NavigationKeyEventIsOwned<true>(wxNavigationKeyEvent) impl
        NavigationKeyEventMethods,
        EventMethods,
        ObjectMethods
}
impl<const OWNED: bool> NavigationKeyEventIsOwned<OWNED> {
    //  ENUM: wxNavigationKeyEventFlags
    pub const IsBackward: c_int = 0x0000;
    pub const IsForward: c_int = 0x0001;
    pub const WinChange: c_int = 0x0002;
    pub const FromTab: c_int = 0x0004;

    ///
    /// See [C++ `wxNavigationKeyEvent::wxNavigationKeyEvent()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_navigation_key_event.html#a87080163d24b140012f2f4ce2b48f977).
    pub fn new() -> NavigationKeyEventIsOwned<OWNED> {
        unsafe { NavigationKeyEventIsOwned(ffi::wxNavigationKeyEvent_new()) }
    }
    ///
    /// See [C++ `wxNavigationKeyEvent::wxNavigationKeyEvent()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_navigation_key_event.html#ac54bb8927f61f701a4e6a354ae4d938e).
    pub fn new_with_navigationkeyevent<N: NavigationKeyEventMethods>(
        event: &N,
    ) -> NavigationKeyEventIsOwned<OWNED> {
        unsafe {
            let event = event.as_ptr();
            NavigationKeyEventIsOwned(ffi::wxNavigationKeyEvent_new1(event))
        }
    }
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl Clone for NavigationKeyEventIsOwned<false> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NavigationKeyEventIsOwned<OWNED>> for EventIsOwned<OWNED> {
    fn from(o: NavigationKeyEventIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NavigationKeyEventIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NavigationKeyEventIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NavigationKeyEventIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNavigationKeyEvent_CLASSINFO()) }
    }
}
impl<const OWNED: bool> Drop for NavigationKeyEventIsOwned<OWNED> {
    fn drop(&mut self) {
        if OWNED {
            unsafe { ffi::wxObject_delete(self.0) }
        }
    }
}

// wxNonOwnedWindow
wxwidgets! {
    /// Common base class for all non-child windows.
    /// - [`NonOwnedWindow`] represents a C++ `wxNonOwnedWindow` class instance which your code has ownership, [`NonOwnedWindowIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NonOwnedWindow`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNonOwnedWindow` class's documentation](https://docs.wxwidgets.org/3.2/classwx_non_owned_window.html) for more details.
    #[doc(alias = "wxNonOwnedWindow")]
    #[doc(alias = "NonOwnedWindow")]
    class NonOwnedWindow
        = NonOwnedWindowIsOwned<true>(wxNonOwnedWindow) impl
        NonOwnedWindowMethods,
        WindowMethods,
        EvtHandlerMethods,
        ObjectMethods
}
impl<const OWNED: bool> NonOwnedWindowIsOwned<OWNED> {
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl<const OWNED: bool> Clone for NonOwnedWindowIsOwned<OWNED> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NonOwnedWindowIsOwned<OWNED>> for WindowIsOwned<OWNED> {
    fn from(o: NonOwnedWindowIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NonOwnedWindowIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED> {
    fn from(o: NonOwnedWindowIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NonOwnedWindowIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NonOwnedWindowIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NonOwnedWindowIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNonOwnedWindow_CLASSINFO()) }
    }
}

// wxNotebook
wxwidgets! {
    /// This class represents a notebook control, which manages multiple windows with associated tabs.
    /// - [`Notebook`] represents a C++ `wxNotebook` class instance which your code has ownership, [`NotebookIsOwned`]`<false>` represents one which don't own.
    /// - Use [`Notebook`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNotebook` class's documentation](https://docs.wxwidgets.org/3.2/classwx_notebook.html) for more details.
    #[doc(alias = "wxNotebook")]
    #[doc(alias = "Notebook")]
    class Notebook
        = NotebookIsOwned<true>(wxNotebook) impl
        NotebookMethods,
        BookCtrlBaseMethods,
        ControlMethods,
        // WindowMethods,
        EvtHandlerMethods,
        ObjectMethods
}
impl<const OWNED: bool> NotebookIsOwned<OWNED> {
    /// Constructs a notebook control.
    ///
    /// See [C++ `wxNotebook::wxNotebook()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_notebook.html#a7bd68c88ae0ac9b5bfa4d60ef3e0b067).
    pub fn new_2step() -> NotebookIsOwned<OWNED> {
        unsafe { NotebookIsOwned(ffi::wxNotebook_new()) }
    }
    /// Constructs a notebook control.
    ///
    /// See [C++ `wxNotebook::wxNotebook()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_notebook.html#a3f096bce4ab17440ce49c1bf761d074e).
    pub fn new<W: WindowMethods, P: PointMethods, S: SizeMethods>(
        parent: Option<&W>,
        id: c_int,
        pos: &P,
        size: &S,
        style: c_long,
        name: &str,
    ) -> NotebookIsOwned<OWNED> {
        unsafe {
            let parent = match parent {
                Some(r) => r.as_ptr(),
                None => ptr::null_mut(),
            };
            let pos = pos.as_ptr();
            let size = size.as_ptr();
            let name = WxString::from(name);
            let name = name.as_ptr();
            NotebookIsOwned(ffi::wxNotebook_new1(parent, id, pos, size, style, name))
        }
    }
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl<const OWNED: bool> Clone for NotebookIsOwned<OWNED> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NotebookIsOwned<OWNED>> for BookCtrlBaseIsOwned<OWNED> {
    fn from(o: NotebookIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotebookIsOwned<OWNED>> for ControlIsOwned<OWNED> {
    fn from(o: NotebookIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotebookIsOwned<OWNED>> for WindowIsOwned<OWNED> {
    fn from(o: NotebookIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotebookIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED> {
    fn from(o: NotebookIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotebookIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NotebookIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NotebookIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNotebook_CLASSINFO()) }
    }
}
impl<const OWNED: bool> WindowMethods for NotebookIsOwned<OWNED> {
    /// Creates a notebook control.
    ///
    /// See [C++ `wxNotebook::Create()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_notebook.html#a6ba4f58ec00e3c192bcb856b1244b09f).
    fn create<W: WindowMethods, P: PointMethods, S: SizeMethods>(
        &self,
        parent: Option<&W>,
        id: c_int,
        pos: &P,
        size: &S,
        style: c_long,
        name: &str,
    ) -> bool {
        unsafe {
            let parent = match parent {
                Some(r) => r.as_ptr(),
                None => ptr::null_mut(),
            };
            let pos = pos.as_ptr();
            let size = size.as_ptr();
            let name = WxString::from(name);
            let name = name.as_ptr();
            ffi::wxNotebook_Create(self.as_ptr(), parent, id, pos, size, style, name)
        }
    }
}

// wxNotificationMessage
wxwidgets! {
    /// This class allows showing the user a message non intrusively.
    /// - [`NotificationMessage`] represents a C++ `wxNotificationMessage` class instance which your code has ownership, [`NotificationMessageIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NotificationMessage`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNotificationMessage` class's documentation](https://docs.wxwidgets.org/3.2/classwx_notification_message.html) for more details.
    #[doc(alias = "wxNotificationMessage")]
    #[doc(alias = "NotificationMessage")]
    class NotificationMessage
        = NotificationMessageIsOwned<true>(wxNotificationMessage) impl
        NotificationMessageMethods,
        EvtHandlerMethods,
        ObjectMethods
}
impl<const OWNED: bool> NotificationMessageIsOwned<OWNED> {
    //  ENUM: @38
    pub const Timeout_Auto: c_int = -1;
    pub const Timeout_Never: c_int = 0;

    /// Default constructor, use SetParent(), SetTitle() and SetMessage() to initialize the object before showing it.
    ///
    /// See [C++ `wxNotificationMessage::wxNotificationMessage()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_notification_message.html#a7799f9358f0d90f8d9ebc675c2da4782).
    pub fn new() -> NotificationMessageIsOwned<OWNED> {
        unsafe { NotificationMessageIsOwned(ffi::wxNotificationMessage_new()) }
    }
    /// Create a notification object with the given attributes.
    ///
    /// See [C++ `wxNotificationMessage::wxNotificationMessage()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_notification_message.html#ad7702e56ced878ea5b0b0e3f9a6a727c).
    pub fn new_with_str<W: WindowMethods>(
        title: &str,
        message: &str,
        parent: Option<&W>,
        flags: c_int,
    ) -> NotificationMessageIsOwned<OWNED> {
        unsafe {
            let title = WxString::from(title);
            let title = title.as_ptr();
            let message = WxString::from(message);
            let message = message.as_ptr();
            let parent = match parent {
                Some(r) => r.as_ptr(),
                None => ptr::null_mut(),
            };
            NotificationMessageIsOwned(ffi::wxNotificationMessage_new1(
                title, message, parent, flags,
            ))
        }
    }
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl<const OWNED: bool> Clone for NotificationMessageIsOwned<OWNED> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NotificationMessageIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED> {
    fn from(o: NotificationMessageIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotificationMessageIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NotificationMessageIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NotificationMessageIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNotificationMessage_CLASSINFO()) }
    }
}

// wxNotifyEvent
wxwidgets! {
    /// This class is not used by the event handlers by itself, but is a base class for other event classes (such as wxBookCtrlEvent).
    /// - [`NotifyEvent`] represents a C++ `wxNotifyEvent` class instance which your code has ownership, [`NotifyEventIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NotifyEvent`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNotifyEvent` class's documentation](https://docs.wxwidgets.org/3.2/classwx_notify_event.html) for more details.
    #[doc(alias = "wxNotifyEvent")]
    #[doc(alias = "NotifyEvent")]
    class NotifyEvent
        = NotifyEventIsOwned<true>(wxNotifyEvent) impl
        NotifyEventMethods,
        CommandEventMethods,
        EventMethods,
        ObjectMethods
}
impl<const OWNED: bool> NotifyEventIsOwned<OWNED> {
    // NOT_SUPPORTED: fn wxNotifyEvent()
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl Clone for NotifyEventIsOwned<false> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NotifyEventIsOwned<OWNED>> for CommandEventIsOwned<OWNED> {
    fn from(o: NotifyEventIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotifyEventIsOwned<OWNED>> for EventIsOwned<OWNED> {
    fn from(o: NotifyEventIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NotifyEventIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NotifyEventIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NotifyEventIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNotifyEvent_CLASSINFO()) }
    }
}
impl<const OWNED: bool> Drop for NotifyEventIsOwned<OWNED> {
    fn drop(&mut self) {
        if OWNED {
            unsafe { ffi::wxObject_delete(self.0) }
        }
    }
}

// wxNumberEntryDialog
wxwidgets! {
    /// This class represents a dialog that requests a numeric input from the user.
    /// - [`NumberEntryDialog`] represents a C++ `wxNumberEntryDialog` class instance which your code has ownership, [`NumberEntryDialogIsOwned`]`<false>` represents one which don't own.
    /// - Use [`NumberEntryDialog`]'s `new()` or [`Buildable::builder()`] (if available) to create an instance of this class.
    /// - See [C++ `wxNumberEntryDialog` class's documentation](https://docs.wxwidgets.org/3.2/classwx_number_entry_dialog.html) for more details.
    #[doc(alias = "wxNumberEntryDialog")]
    #[doc(alias = "NumberEntryDialog")]
    class NumberEntryDialog
        = NumberEntryDialogIsOwned<true>(wxNumberEntryDialog) impl
        NumberEntryDialogMethods,
        DialogMethods,
        TopLevelWindowMethods,
        NonOwnedWindowMethods,
        WindowMethods,
        EvtHandlerMethods,
        ObjectMethods
}
impl<const OWNED: bool> NumberEntryDialogIsOwned<OWNED> {
    /// Default constructor.
    ///
    /// See [C++ `wxNumberEntryDialog::wxNumberEntryDialog()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_number_entry_dialog.html#aebe799ab025b3b31b1d5e1de45e582a5).
    pub fn new_2step() -> NumberEntryDialogIsOwned<OWNED> {
        unsafe { NumberEntryDialogIsOwned(ffi::wxNumberEntryDialog_new()) }
    }
    /// Constructor.
    ///
    /// See [C++ `wxNumberEntryDialog::wxNumberEntryDialog()`'s documentation](https://docs.wxwidgets.org/3.2/classwx_number_entry_dialog.html#a35f2a9529c9d126dbb8196698cb93186).
    pub fn new<W: WindowMethods, P: PointMethods>(
        parent: Option<&W>,
        message: &str,
        prompt: &str,
        caption: &str,
        value: c_long,
        min: c_long,
        max: c_long,
        pos: &P,
    ) -> NumberEntryDialogIsOwned<OWNED> {
        unsafe {
            let parent = match parent {
                Some(r) => r.as_ptr(),
                None => ptr::null_mut(),
            };
            let message = WxString::from(message);
            let message = message.as_ptr();
            let prompt = WxString::from(prompt);
            let prompt = prompt.as_ptr();
            let caption = WxString::from(caption);
            let caption = caption.as_ptr();
            let pos = pos.as_ptr();
            NumberEntryDialogIsOwned(ffi::wxNumberEntryDialog_new1(
                parent, message, prompt, caption, value, min, max, pos,
            ))
        }
    }
    pub fn none() -> Option<&'static Self> {
        None
    }
}
impl<const OWNED: bool> Clone for NumberEntryDialogIsOwned<OWNED> {
    fn clone(&self) -> Self {
        Self(self.0)
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for DialogIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for TopLevelWindowIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for NonOwnedWindowIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for WindowIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> From<NumberEntryDialogIsOwned<OWNED>> for ObjectIsOwned<OWNED> {
    fn from(o: NumberEntryDialogIsOwned<OWNED>) -> Self {
        unsafe { Self::from_ptr(o.as_ptr()) }
    }
}
impl<const OWNED: bool> DynamicCast for NumberEntryDialogIsOwned<OWNED> {
    fn class_info() -> ClassInfoIsOwned<false> {
        unsafe { ClassInfoIsOwned::from_ptr(ffi::wxNumberEntryDialog_CLASSINFO()) }
    }
}