wxrust_base/generated/
class_m.rs1use super::*;
2
3wxwidgets! {
5 #[doc(alias = "wxMessageOutput")]
10 #[doc(alias = "MessageOutput")]
11 class MessageOutput
12 = MessageOutputIsOwned<true>(wxMessageOutput) impl
13 MessageOutputMethods
14}
15impl<const OWNED: bool> MessageOutputIsOwned<OWNED> {
16 pub fn none() -> Option<&'static Self> {
17 None
18 }
19}
20impl Clone for MessageOutputIsOwned<false> {
21 fn clone(&self) -> Self {
22 Self(self.0)
23 }
24}
25impl<const OWNED: bool> Drop for MessageOutputIsOwned<OWNED> {
26 fn drop(&mut self) {
27 if OWNED {
28 unsafe { ffi::wxMessageOutput_delete(self.0) }
29 }
30 }
31}