@@ -4,11 +4,11 @@ use std::path::PathBuf;
4
4
impl_callback ! {
5
5
let name = "IDLE_ACTION" ;
6
6
extern fn listener( ) -> CallbackReturn ;
7
- /// Action generated when there are no events or messages to be processed.
8
- ///
9
- /// Often used to perform background operations.
7
+ # [ doc= " Action generated when there are no events or messages to be processed." ]
8
+ # [ doc= "" ]
9
+ # [ doc= " Often used to perform background operations." ]
10
10
pub fn set_idle<F : Callback ( ) >( cb: F ) ;
11
- /// Removes a previosly set up idle_action callback.
11
+ # [ doc= " Removes a previosly set up idle_action callback." ]
12
12
pub fn remove_idle( ) -> Option <Box <_>>;
13
13
}
14
14
@@ -18,9 +18,9 @@ impl_callback! {
18
18
// This is the common version of the ACTION callback, any so called ACTION that does not
19
19
// have the `(*mut iup_sys::Ihandle)` signature should be another trait.
20
20
impl_callback ! {
21
- /// Action generated when the element is activated. Affects each element differently.
22
- ///
23
- /// See the documentation of the `Self` object for the effect of this callback on it.
21
+ # [ doc= " Action generated when the element is activated. Affects each element differently." ]
22
+ # [ doc= "" ]
23
+ # [ doc= " See the documentation of the `Self` object for the effect of this callback on it." ]
24
24
pub trait Action where Self : Element {
25
25
let name = "ACTION" ;
26
26
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -37,7 +37,7 @@ impl_callback! {
37
37
// The binding free needs to be called after LDESTROY_CB (i.e. at DESTROY_CB) because
38
38
// the LDESTROY_CB event call depends on the binding boxed data to work properly.
39
39
impl_callback ! {
40
- /// Called right before an element is destroyed.
40
+ # [ doc= " Called right before an element is destroyed." ]
41
41
pub trait DestroyCb where Self : Element {
42
42
let name = "LDESTROY_CB" ; // See comments above for reason behind LDESTROY_CB.
43
43
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -47,11 +47,11 @@ impl_callback! {
47
47
}
48
48
49
49
impl_callback ! {
50
- /// Called right after an element is mapped and its attributes updated in `Element::map`.
51
- ///
52
- /// When the element is a dialog, it is called after the layout is updated. For all other
53
- /// elements is called before the layout is updated, so the element current size will still
54
- /// be 0x0 during MAP_CB.
50
+ # [ doc= " Called right after an element is mapped and its attributes updated in `Element::map`." ]
51
+ # [ doc= "" ]
52
+ # [ doc= " When the element is a dialog, it is called after the layout is updated. For all other" ]
53
+ # [ doc= " elements is called before the layout is updated, so the element current size will still" ]
54
+ # [ doc= " be 0x0 during MAP_CB." ]
55
55
pub trait MapCb where Self : Element {
56
56
let name = "MAP_CB" ;
57
57
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -61,7 +61,7 @@ impl_callback! {
61
61
}
62
62
63
63
impl_callback ! {
64
- /// Called right before an element is unmapped.
64
+ # [ doc= " Called right before an element is unmapped." ]
65
65
pub trait UnmapCb where Self : Element {
66
66
let name = "UNMAP_CB" ;
67
67
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -71,10 +71,10 @@ impl_callback! {
71
71
}
72
72
73
73
impl_callback ! {
74
- /// Action generated when an element is given keyboard focus.
75
- ///
76
- /// This callback is called after the `KillFocusCb` of the element that loosed the focus.
77
- /// The IupGetFocus (TODO) function during the callback returns the element that loosed the focus.
74
+ # [ doc= " Action generated when an element is given keyboard focus." ]
75
+ # [ doc= "" ]
76
+ # [ doc= " This callback is called after the `KillFocusCb` of the element that loosed the focus." ]
77
+ # [ doc= " The IupGetFocus (TODO) function during the callback returns the element that loosed the focus." ]
78
78
pub trait GetFocusCb where Self : Element {
79
79
let name = "GETFOCUS_CB" ;
80
80
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -84,13 +84,13 @@ impl_callback! {
84
84
}
85
85
86
86
impl_callback ! {
87
- /// Action generated when an element loses keyboard focus.
88
- ///
89
- /// This callback is called before the `GetFocusCb` of the element that gets the focus.
90
- ///
91
- /// While processing this message, do not make any function calls that display or activate a
92
- /// window. This causes the thread to yield control and can cause the application to stop
93
- /// responding to messages.
87
+ # [ doc= " Action generated when an element loses keyboard focus." ]
88
+ # [ doc= "" ]
89
+ # [ doc= " This callback is called before the `GetFocusCb` of the element that gets the focus." ]
90
+ # [ doc= "" ]
91
+ # [ doc= " While processing this message, do not make any function calls that display or activate a" ]
92
+ # [ doc= " window. This causes the thread to yield control and can cause the application to stop" ]
93
+ # [ doc= " responding to messages." ]
94
94
pub trait KillFocusCb where Self : Element {
95
95
let name = "KILLFOCUS_CB" ;
96
96
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -100,11 +100,11 @@ impl_callback! {
100
100
}
101
101
102
102
impl_callback ! {
103
- /// Action generated when the mouse enters the native element.
104
- ///
105
- /// When the cursor is moved from one element to another, the call order in all platforms will
106
- /// be first the `LeaveWindowCb` callback of the old control followed by the `EnterWindowCb`
107
- /// callback of the new control.
103
+ # [ doc= " Action generated when the mouse enters the native element." ]
104
+ # [ doc= "" ]
105
+ # [ doc= " When the cursor is moved from one element to another, the call order in all platforms will" ]
106
+ # [ doc= " be first the `LeaveWindowCb` callback of the old control followed by the `EnterWindowCb`" ]
107
+ # [ doc= " callback of the new control." ]
108
108
pub trait EnterWindowCb where Self : Element {
109
109
let name = "ENTERWINDOW_CB" ;
110
110
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -114,11 +114,11 @@ impl_callback! {
114
114
}
115
115
116
116
impl_callback ! {
117
- /// Action generated when the mouse leaves the native element.
118
- ///
119
- /// When the cursor is moved from one element to another, the call order in all platforms will
120
- /// be first the `LeaveWindowCb` callback of the old control followed by the `EnterWindowCb`
121
- /// callback of the new control.
117
+ # [ doc= " Action generated when the mouse leaves the native element." ]
118
+ # [ doc= "" ]
119
+ # [ doc= " When the cursor is moved from one element to another, the call order in all platforms will" ]
120
+ # [ doc= " be first the `LeaveWindowCb` callback of the old control followed by the `EnterWindowCb`" ]
121
+ # [ doc= " callback of the new control." ]
122
122
pub trait LeaveWindowCb where Self : Element {
123
123
let name = "LEAVEWINDOW_CB" ;
124
124
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -128,9 +128,9 @@ impl_callback! {
128
128
}
129
129
130
130
impl_callback ! {
131
- /// Action generated when the user press F1 at a control.
132
- ///
133
- /// `CallbackReturn::Close` will be processed.
131
+ # [ doc= " Action generated when the user press F1 at a control." ]
132
+ # [ doc= "" ]
133
+ # [ doc= " `CallbackReturn::Close` will be processed." ]
134
134
pub trait HelpCb where Self : Element {
135
135
let name = "HELP_CB" ;
136
136
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -143,10 +143,10 @@ impl_callback! {
143
143
// ----------------------------
144
144
145
145
impl_callback ! {
146
- /// Action generated when the caret/cursor position is changed.
147
- ///
148
- /// The second and third parameters are the line and column number (start at 1).
149
- /// The fourth parameter is a 0 based character position.
146
+ # [ doc= " Action generated when the caret/cursor position is changed." ]
147
+ # [ doc= "" ]
148
+ # [ doc= " The second and third parameters are the line and column number (start at 1)." ]
149
+ # [ doc= " The fourth parameter is a 0 based character position." ]
150
150
pub trait CaretCb where Self : Element {
151
151
let name = "CARET_CB" ;
152
152
extern fn listener( ih: * mut iup_sys:: Ihandle , lin: c_int, col: c_int, pos: c_int) -> CallbackReturn ;
@@ -156,7 +156,7 @@ impl_callback! {
156
156
}
157
157
158
158
impl_callback ! {
159
- /// Action generated when a spin button is pressed.
159
+ # [ doc= " Action generated when a spin button is pressed." ]
160
160
pub trait SpinCb where Self : Element {
161
161
let name = "SPIN_CB" ;
162
162
extern fn listener( ih: * mut iup_sys:: Ihandle , i: c_int) -> CallbackReturn ;
@@ -166,9 +166,9 @@ impl_callback! {
166
166
}
167
167
168
168
impl_callback ! {
169
- /// Usually called after the value of a control changed.
170
- ///
171
- /// See the specific control documentation for more details.
169
+ # [ doc= " Usually called after the value of a control changed." ]
170
+ # [ doc= "" ]
171
+ # [ doc= " See the specific control documentation for more details." ]
172
172
pub trait ValueChangedCb where Self : Element {
173
173
let name = "VALUECHANGED_CB" ;
174
174
extern fn listener( ih: * mut iup_sys:: Ihandle ) -> CallbackReturn ;
@@ -179,22 +179,22 @@ impl_callback! {
179
179
180
180
181
181
impl_callback ! {
182
- /// Action called when a file is *dropped* into the control.
183
- ///
184
- /// When several files are dropped at once, the callback is called several times, once for
185
- /// each file.
186
- ///
187
- /// If defined after the element is mapped then the attribute DROPFILESTARGET must be set
188
- /// to YES.
189
- ///
190
- /// The third parameter of the callback is the number index of the dropped file. If several
191
- /// files are dropped, it is the index of the dropped file starting from *total-1* to *0*.
192
- /// The fourth and fifth parameters are x,y coordinate of the point where the user
193
- /// released the mouse button.
194
- ///
195
- /// if `CallbackReturn::Ignore` is returned the callback will **not** be called for the
196
- /// next dropped files, and the processing of dropped files will be interrupted.
197
- ///
182
+ # [ doc= " Action called when a file is *dropped* into the control." ]
183
+ # [ doc= "" ]
184
+ # [ doc= " When several files are dropped at once, the callback is called several times, once for" ]
185
+ # [ doc= " each file. " ]
186
+ # [ doc= "" ]
187
+ # [ doc= " If defined after the element is mapped then the attribute DROPFILESTARGET must be set" ]
188
+ # [ doc= " to YES." ]
189
+ # [ doc= "" ]
190
+ # [ doc= " The third parameter of the callback is the number index of the dropped file. If several" ]
191
+ # [ doc= " files are dropped, it is the index of the dropped file starting from *total-1* to *0*." ]
192
+ # [ doc= " The fourth and fifth parameters are x,y coordinate of the point where the user" ]
193
+ # [ doc= " released the mouse button." ]
194
+ # [ doc= "" ]
195
+ # [ doc= " if `CallbackReturn::Ignore` is returned the callback will **not** be called for the" ]
196
+ # [ doc= " next dropped files, and the processing of dropped files will be interrupted." ]
197
+ # [ doc= "" ]
198
198
#[ doc="\\ [Windows and GTK Only\\ ] (GTK 2.6)" ]
199
199
pub trait DropFilesCb where Self : Element {
200
200
let name = "DROPFILES_CB" ;
0 commit comments