| 1 |
;;; |
| 2 |
;;; hello-world ; show text and lines on canvas |
| 3 |
;;; icon-disp ; show hellow_world.icon |
| 4 |
;;; byebye-world ; show quit-button |
| 5 |
;;; icon-browser1 ; show listing and selection |
| 6 |
;;; icon-browser2 ; show image and name of icons |
| 7 |
;;; show-event ; show event name |
| 8 |
;;; M.I. 1989.5.27 |
| 9 |
(format t "type (demo)~%") |
| 10 |
(defun demo nil |
| 11 |
(hello-world) (icon-disp) (byebye-world) |
| 12 |
(icon-browser1) (icon-browser2) (show-event)) |
| 13 |
(defun print-size (&optional mes) |
| 14 |
(format t "~s~%" mes) |
| 15 |
(format t "frame (~s,~s)~%" |
| 16 |
(window_get *frame* win_width) (window_get *frame* win_height)) |
| 17 |
(format t "canvas (~s,~s)~%" |
| 18 |
(window_get *canvas* win_width) (window_get *canvas* win_height)) |
| 19 |
(format t "pixwin (~s,~s)~%" |
| 20 |
(window_get *pixwin* win_width) (window_get *pixwin* win_height)) |
| 21 |
) |
| 22 |
(defun set-size (&key (s 300) (x 750) (y 400)) |
| 23 |
(window_set *frame* win_width s) |
| 24 |
(window_set *frame* win_height s) |
| 25 |
(window_set *canvas* win_width s) |
| 26 |
(window_set *canvas* win_height s) |
| 27 |
(window_set *pixwin* win_width s) |
| 28 |
(window_set *pixwin* win_height s) |
| 29 |
(window_fit *pixwin*) |
| 30 |
(window_fit *canvas*) |
| 31 |
(window_set *frame* win_x x) |
| 32 |
(window_set *frame* win_y y) |
| 33 |
(window_fit *frame*) |
| 34 |
(print-size)) |
| 35 |
(defun hello-world nil |
| 36 |
(setq *frame* (window_create_frame 0 frame_label "Hello world." |
| 37 |
win_x 0 win_y 0 |
| 38 |
win_width 400 win_height 400 |
| 39 |
win_dynamic_visual 1 |
| 40 |
0)) |
| 41 |
(setq *canvas* (window_create_canvas |
| 42 |
*frame* win_width 300 win_height 300 |
| 43 |
win_dynamic_visual 1)) |
| 44 |
(setq *pixwin* (canvas_pixwin *canvas*)) |
| 45 |
(window_set *frame* win_width 300) |
| 46 |
(window_set *frame* win_height 300) |
| 47 |
(window_set *canvas* win_width 300) |
| 48 |
(window_set *canvas* win_height 300) |
| 49 |
(window_set *pixwin* canvas_width 300) |
| 50 |
(window_set *pixwin* canvas_height 300) |
| 51 |
(window_fit *pixwin*) |
| 52 |
(window_fit *canvas*) |
| 53 |
(window_fit *frame*) |
| 54 |
(window_set *frame* win_show 1) |
| 55 |
(pw_vector *pixwin* 100 100 200 100 PIX_SRC 1) |
| 56 |
(pw_vector *pixwin* 100 200 200 200 PIX_SRC 1) |
| 57 |
(pw_vector *pixwin* 100 100 100 200 PIX_SRC 1) |
| 58 |
(pw_vector *pixwin* 200 100 200 200 PIX_SRC 1) |
| 59 |
(pw_text *pixwin* 125 150 PIX_SRC 0 "Hello World!") |
| 60 |
(notify_do_dispatch) |
| 61 |
) |
| 62 |
(defun icon-disp nil |
| 63 |
(notify_no_dispatch) |
| 64 |
#+sunview |
| 65 |
(setq hpixrect (icon_load_image |
| 66 |
"/usr/include/images/hello_world.icon")) |
| 67 |
#+xview |
| 68 |
(setq hpixrect (icon_load_image |
| 69 |
"/usr/local/include/X11/images/hello_world.icon")) |
| 70 |
(setq hicon (icon_create icon_image hpixrect 0)) |
| 71 |
(setq *frame* (window_create_frame 0 frame_label "ICON")) |
| 72 |
(setq *canvas* (window_create_canvas *frame* |
| 73 |
win_height 64 |
| 74 |
win_width 64 |
| 75 |
0)) |
| 76 |
(setq *pixwin* (canvas_pixwin *canvas*)) |
| 77 |
(pw_rop *pixwin* 0 0 64 64 pix_src hpixrect 0 0) |
| 78 |
(window_fit *frame*) |
| 79 |
(window_set *frame* win_show 1 0) |
| 80 |
(notify_do_dispatch) |
| 81 |
) |
| 82 |
|
| 83 |
(defun-c-callable quit-proc |
| 84 |
((p :integer) (e :integer)) :integer |
| 85 |
(format t "in quit-proc *frame* = ~S~%" *frame*) |
| 86 |
(window_destroy *frame*) |
| 87 |
(setq *quit* t)) |
| 88 |
|
| 89 |
(defun byebye-world nil |
| 90 |
(notify_no_dispatch) |
| 91 |
#+sunview |
| 92 |
(setq bold (pf_open "/usr/lib/fonts/fixedwidthfonts/screen.b.12")) |
| 93 |
#+xview |
| 94 |
(setq bold (pf_open "lucidasans-bold-12")) |
| 95 |
|
| 96 |
(if (= bold 0) (return-from simple nil)) |
| 97 |
;; (setq hello (read-icon "/usr/include/images/hello_world.icon")) |
| 98 |
;; (setq hpixrect (mem_point 64 64 1 hello)) |
| 99 |
#+sunview |
| 100 |
(setq hpixrect (icon_load_mpr "/usr/include/images/hello_world.icon" |
| 101 |
"no file")) |
| 102 |
#+xview |
| 103 |
(setq hpixrect |
| 104 |
(icon_load_mpr |
| 105 |
"/usr/local/include/X11/images/hello_world.icon" |
| 106 |
"no file")) |
| 107 |
(setq hicon (icon_create icon_image hpixrect 0)) |
| 108 |
(setq *frame* |
| 109 |
(window_create_frame 0 frame_label "byebye-world" |
| 110 |
frame_icon hicon |
| 111 |
0)) |
| 112 |
(setq *panel* (window_create_panel *frame*)) |
| 113 |
(window_set *panel* win_font bold 0) |
| 114 |
|
| 115 |
(panel_create_message |
| 116 |
*panel* |
| 117 |
panel_label_string "Hit button to quit." |
| 118 |
0) |
| 119 |
(panel_create_button |
| 120 |
*panel* |
| 121 |
#+sunview |
| 122 |
panel_label_image |
| 123 |
#+xview |
| 124 |
panel_label_string |
| 125 |
#+sunview |
| 126 |
(panel_button_image *panel* "bye bye" 5 0) |
| 127 |
#+xview |
| 128 |
"bye bye" |
| 129 |
panel_notify_proc |
| 130 |
(pod-address 'quit-proc) |
| 131 |
0) |
| 132 |
(window_fit *panel*) |
| 133 |
(window_fit *frame*) |
| 134 |
(window_set *frame* win_show 1 0) |
| 135 |
(notify_do_dispatch) |
| 136 |
) |
| 137 |
|
| 138 |
(defun-c-callable ls-proc |
| 139 |
((p :integer) (e :integer)) :integer |
| 140 |
(setq str (concatenate string "ls " |
| 141 |
(adr_to_string |
| 142 |
(panel_get *dir-item* panel_value)) |
| 143 |
"^J")) |
| 144 |
(ttysw_input *tty* str (length str)) |
| 145 |
) |
| 146 |
|
| 147 |
(defun-c-callable SHOW-PROC |
| 148 |
((p :integer) (e :integer)) :integer |
| 149 |
(panel_set image_item |
| 150 |
panel_item_x (xv_col p 5) |
| 151 |
panel_item_y (xv_row p 4) |
| 152 |
panel_item_x 5 |
| 153 |
panel_item_y 4 |
| 154 |
panel_label_image |
| 155 |
(icon_load_image |
| 156 |
(concatenate string |
| 157 |
(adr_to_string (panel_get_value *dir-item*)) |
| 158 |
"/" |
| 159 |
(get_selection)) |
| 160 |
) |
| 161 |
0) |
| 162 |
) |
| 163 |
(defun icon-browser1 nil |
| 164 |
(notify_no_dispatch) |
| 165 |
(setq *frame* (window_create_frame 0 frame_label "icon_browser1" 0)) |
| 166 |
(setq *tty* (window_create_tty *frame* win_columns 80 |
| 167 |
win_rows 20 |
| 168 |
0)) |
| 169 |
(setq *control-panel* (window_create_panel *frame* 0)) |
| 170 |
(format t "a~%") |
| 171 |
(setq *dir-item* (panel_create_text |
| 172 |
*control-panel* |
| 173 |
panel_value_display_length 13 |
| 174 |
panel_label_string "Dir: " |
| 175 |
panel_value (unix:getwd) |
| 176 |
0)) |
| 177 |
(format t "a~%") |
| 178 |
(setq *fname-item* (panel_create_text |
| 179 |
*control-panel* |
| 180 |
panel_item_x (xv_col *control-panel* 0) |
| 181 |
panel_item_y (xv_row *control-panel* 1) |
| 182 |
panel_value_display_length 13 |
| 183 |
panel_label_string "File:" |
| 184 |
0)) |
| 185 |
(format t "a~%") |
| 186 |
(panel_create_button *control-panel* |
| 187 |
panel_item_x (xv_col *control-panel* 0) |
| 188 |
panel_item_y (xv_row *control-panel* 2) |
| 189 |
#+xview |
| 190 |
panel_label_string |
| 191 |
#+xview |
| 192 |
"List" |
| 193 |
#+sunview |
| 194 |
panel_label_image |
| 195 |
#+sunview |
| 196 |
(panel_button_image *control-panel* "List" 0 0) |
| 197 |
panel_notify_proc (pod-address 'ls-proc) |
| 198 |
0) |
| 199 |
(format t "a~%") |
| 200 |
(panel_create_button *control-panel* |
| 201 |
#+xview |
| 202 |
panel_label_string |
| 203 |
#+xview |
| 204 |
"Show" |
| 205 |
#+sunview |
| 206 |
panel_label_image |
| 207 |
#+sunview |
| 208 |
(panel_button_image *control-panel* "Show" 0 0) |
| 209 |
panel_notify_proc (pod-address 'show-proc) |
| 210 |
0) |
| 211 |
(format t "a~%") |
| 212 |
(panel_create_button *control-panel* |
| 213 |
#+xview |
| 214 |
panel_label_string |
| 215 |
#+xview |
| 216 |
"List" |
| 217 |
#+sunview |
| 218 |
panel_label_image |
| 219 |
#+sunview |
| 220 |
(panel_button_image *control-panel* "Quit" 0 0) |
| 221 |
panel_notify_proc (pod-address 'quit-proc) |
| 222 |
0) |
| 223 |
(format t "a~%") |
| 224 |
(window_fit *control-panel*) |
| 225 |
(window_fit *frame*) |
| 226 |
(setq *display-panel* (window_create_panel *frame* |
| 227 |
win_below *control-panel* |
| 228 |
win_right_of *tty* |
| 229 |
0)) |
| 230 |
(setq image_item (panel_create_message *display-panel* 0)) |
| 231 |
|
| 232 |
(window_set *frame* win_show 1 0) |
| 233 |
(notify_do_dispatch) |
| 234 |
) |
| 235 |
|
| 236 |
(defun icon_load_image (fname) |
| 237 |
; (mem_point 64 64 8 |
| 238 |
; (read-face fname))) |
| 239 |
; (mem_point 64 64 1 |
| 240 |
; (read-icon fname)) |
| 241 |
(icon_load_mpr fname (make-string 100)) |
| 242 |
) |
| 243 |
|
| 244 |
(setq image_count 0) |
| 245 |
(setq previous_image_count 0) |
| 246 |
|
| 247 |
(defun-c-callable BROWSE-PROC |
| 248 |
((a :integer) (b :integer)) :integer |
| 249 |
(setq current_dir (adr_to_string (panel_get_value *dir-item*))) |
| 250 |
(setq name_list (expand_name |
| 251 |
(concatenate |
| 252 |
string |
| 253 |
current_dir "/" |
| 254 |
(adr_to_string (panel_get *fname-item* panel_value))))) |
| 255 |
(setq file_count (length name_list)) |
| 256 |
(do ((ip (panel_get *display-panel* panel_first_item) |
| 257 |
(panel_get ip panel_next_item))) |
| 258 |
((zerop ip)) |
| 259 |
(pr_destroy (panel_get ip panel_label_image)) |
| 260 |
(panel_free ip)) |
| 261 |
(setq previous_image_count image_count) |
| 262 |
(setq image_count 0) |
| 263 |
(dotimes |
| 264 |
(row file_count) |
| 265 |
(when |
| 266 |
(not (zerop |
| 267 |
(setq image |
| 268 |
(icon_load_image |
| 269 |
(aref name_list image_count))))) |
| 270 |
(panel_create_message *display-panel* |
| 271 |
panel_item_y (xv_row *display-panel* (* 2 row)) |
| 272 |
panel_item_x (xv_col *display-panel* 0) |
| 273 |
panel_label_image image |
| 274 |
0) |
| 275 |
(panel_create_message *display-panel* |
| 276 |
panel_item_y (xv_row *display-panel* (1+ (* 2 row))) |
| 277 |
panel_item_x (xv_col *display-panel* 0) |
| 278 |
#+xview |
| 279 |
panel_label_string |
| 280 |
#+xview |
| 281 |
(aref name_list image_count) |
| 282 |
#+sunview |
| 283 |
panel_label_image |
| 284 |
#+sunview |
| 285 |
(panel_button_image |
| 286 |
*display-panel* |
| 287 |
(aref name_list image_count) 0 0) |
| 288 |
0) |
| 289 |
) |
| 290 |
(inc image_count) |
| 291 |
) |
| 292 |
(if (<= image_count previous_image_count) |
| 293 |
(panel_update_scrolling_size *display-panel*)) |
| 294 |
(panel_paint *display-panel* panel_clear) |
| 295 |
) |
| 296 |
|
| 297 |
(defun icon-browser2 nil |
| 298 |
(notify_no_dispatch) |
| 299 |
(setq *frame* (window_create_frame 0 frame_label "icon_browser_2" 0)) |
| 300 |
(init_control_panel 'browse-proc) |
| 301 |
(init_display_panel) |
| 302 |
(window_set *control-panel* |
| 303 |
win_width (window_get *display-panel* win_width) |
| 304 |
0) |
| 305 |
(window_fit *frame*) |
| 306 |
(window_set *frame* win_show 1 0) |
| 307 |
(notify_do_dispatch) |
| 308 |
) |
| 309 |
|
| 310 |
(defun init_control_panel (proc) |
| 311 |
(setq *control-panel* (window_create_panel *frame* 0)) |
| 312 |
(setq *dir-item* (panel_create_text |
| 313 |
*control-panel* |
| 314 |
panel_label_x (xv_col *control-panel* 0) |
| 315 |
panel_label_y (xv_row *control-panel* 0) |
| 316 |
panel_value_display_length 23 |
| 317 |
panel_value |
| 318 |
#+sunview |
| 319 |
"/usr/include/images" |
| 320 |
#+xview |
| 321 |
"/usr/local/include/X11/images" |
| 322 |
panel_label_string "Dir: " |
| 323 |
0)) |
| 324 |
|
| 325 |
(panel_create_button *control-panel* |
| 326 |
#+xview |
| 327 |
panel_label_string |
| 328 |
#+xview |
| 329 |
"Browse" |
| 330 |
#+sunview |
| 331 |
panel_label_image |
| 332 |
#+sunview |
| 333 |
(panel_button_image *control-panel* "Browse" 0 0) |
| 334 |
panel_notify_proc (pod-address proc) |
| 335 |
0) |
| 336 |
(setq *fname-item* (panel_create_text |
| 337 |
*control-panel* |
| 338 |
panel_item_x (xv_col *control-panel* 0) |
| 339 |
panel_item_y (xv_row *control-panel* 1) |
| 340 |
panel_value_display_length 23 |
| 341 |
panel_value "writedoc.icon" |
| 342 |
panel_label_string "File:" |
| 343 |
0)) |
| 344 |
(panel_create_button *control-panel* |
| 345 |
#+xview |
| 346 |
panel_label_string |
| 347 |
#+xview |
| 348 |
"Quit" |
| 349 |
#+sunview |
| 350 |
panel_label_image |
| 351 |
#+sunview |
| 352 |
(panel_button_image *control-panel* "Quit" 6 0) |
| 353 |
panel_notify_proc (pod-address 'quit-proc) |
| 354 |
0) |
| 355 |
(window_fit_height *control-panel*) |
| 356 |
(window_set *control-panel* panel_caret_item *fname-item* 0) |
| 357 |
) |
| 358 |
|
| 359 |
(defun init_display_panel nil |
| 360 |
(setq sb (scrollbar_create 0)) |
| 361 |
;; (setq width (window_get sb scroll_thickness)) |
| 362 |
(setq width 8) |
| 363 |
(setq *display-panel* |
| 364 |
(window_create_panel *frame* |
| 365 |
win_below *control-panel* |
| 366 |
win_x 0 |
| 367 |
win_vertical_scrollbar sb |
| 368 |
0)) |
| 369 |
(window_set *display-panel* |
| 370 |
win_row_height 100 |
| 371 |
win_column_width 100 |
| 372 |
win_row_gap 10 |
| 373 |
win_column_gap 10 |
| 374 |
0) |
| 375 |
(window_set *display-panel* |
| 376 |
win_left_margin (+ width 10) |
| 377 |
win_top_margin 10 |
| 378 |
win_rows 4 |
| 379 |
win_columns 4 |
| 380 |
0) |
| 381 |
(window_set *display-panel* win_left_margin 10 0) |
| 382 |
) |
| 383 |
|
| 384 |
(defun show-msg (window-cadr event msg) |
| 385 |
(cond |
| 386 |
((equal window-cadr *paint*) |
| 387 |
(let ((we (canvas_window_event *paint* event))) |
| 388 |
(pw_text *pixwin* 50 120 pix_src 0 |
| 389 |
(format nil " *paint* time:~a " (event_time we))) |
| 390 |
(setq last-time (event_time we)) |
| 391 |
(pw_text *pixwin* 50 140 pix_src 0 |
| 392 |
(setq msg (format nil "*paint* c:~a at ~s ~s~a " msg |
| 393 |
(event_x we) (event_y we) |
| 394 |
(if |
| 395 |
(event_is_button event) |
| 396 |
(cond |
| 397 |
((event_is_up we) " up.") |
| 398 |
((event_is_down we) " down.") |
| 399 |
(t ".")) |
| 400 |
".")))) |
| 401 |
)) |
| 402 |
((equal window-cadr *canvas*) |
| 403 |
(let ((we (canvas_window_event *canvas* event))) |
| 404 |
(pw_text (canvas_pixwin *canvas*) 50 120 pix_src 0 |
| 405 |
(format nil "time:~a " (event_time we))) |
| 406 |
(setq last-time (event_time we)) |
| 407 |
(pw_text (canvas_pixwin *canvas*) 50 140 pix_src 0 |
| 408 |
(setq msg (format nil "c:~a at ~s ~s~a " msg |
| 409 |
(event_x we) (event_y we) |
| 410 |
(if |
| 411 |
(event_is_button event) |
| 412 |
(cond |
| 413 |
((event_is_up we) " up.") |
| 414 |
((event_is_down we) " down.") |
| 415 |
(t ".")) |
| 416 |
".")))) |
| 417 |
)) |
| 418 |
((equal window-cadr *panel*) |
| 419 |
(let ((we (panel_window_event *panel* event))) |
| 420 |
(pw_text (canvas_pixwin *canvas*) 50 160 pix_src 0 |
| 421 |
(format nil "p:~a at ~s ~s,~s. " msg |
| 422 |
(event_x we) (event_y we) |
| 423 |
(when |
| 424 |
(event_is_button we) |
| 425 |
(cond |
| 426 |
((event_is_up we) 'up) |
| 427 |
((event_is_down we) 'down) |
| 428 |
(t ""))))))) |
| 429 |
((equal window-cadr *frame*) |
| 430 |
(pw_text (canvas_pixwin *canvas*) 50 180 pix_src 0 |
| 431 |
(format nil "~a on frame. " msg))) |
| 432 |
) |
| 433 |
(format t "~a ~%" window-cadr) |
| 434 |
) |
| 435 |
(defun-c-callable eventer-window-handler (window-cadr event) |
| 436 |
(let ((id (event_id event))) |
| 437 |
(cond |
| 438 |
((equal id loc_drag) (show-msg window-cadr event "dragging")) |
| 439 |
((equal id loc_move) (show-msg window-cadr event "moving")) |
| 440 |
;;; ((equal id loc_still) (show-msg window-cadr event "still")) |
| 441 |
((equal id ms_left) (show-msg window-cadr event "left")) |
| 442 |
((equal id ms_right) (show-msg window-cadr event "right")) |
| 443 |
((equal id ms_middle) (show-msg window-cadr event "middle")) |
| 444 |
((equal id loc_winenter) (show-msg window-cadr event "winenter")) |
| 445 |
((equal id loc_winexit) (show-msg window-cadr event "winexit")) |
| 446 |
;;; ((equal id loc_rgnenter) (show-msg window-cadr event "rgnenter")) |
| 447 |
;;; ((equal id loc_rgnexit) (show-msg window-cadr event "rgnexit")) |
| 448 |
) |
| 449 |
(format t "window=~a ,event=~a~%" window-cadr event) |
| 450 |
)) |
| 451 |
(defun show-event nil |
| 452 |
(setq count 0) |
| 453 |
(setq *Frame* |
| 454 |
(window_create_frame |
| 455 |
null frame_label "Show event" win_x 700 win_y 30 |
| 456 |
win_event_proc (pod-address 'eventer-window-handler) |
| 457 |
frame_icon |
| 458 |
(icon_create icon_image |
| 459 |
(icon_load_mpr |
| 460 |
#+sunview |
| 461 |
"/usr/include/images/hello_world.icon" |
| 462 |
#+xview |
| 463 |
"/usr/local/include/X11/images/hello_world.icon" |
| 464 |
(setq errbuf (make-string 32)))) |
| 465 |
)) |
| 466 |
(setq *panel* |
| 467 |
(window_create_panel |
| 468 |
*Frame* |
| 469 |
win_event_proc (pod-address 'eventer-window-handler) |
| 470 |
win_font |
| 471 |
#+sunview |
| 472 |
(pf_open "/usr/lib/fonts/fixedwidthfonts/screen.b.12") |
| 473 |
#+xview |
| 474 |
(pf_open "lucidasans-bold-12") |
| 475 |
)) |
| 476 |
(panel_create_message |
| 477 |
*panel* panel_label_string "Hit button to quit.") |
| 478 |
(panel_create_button |
| 479 |
*panel* |
| 480 |
#+xview |
| 481 |
panel_label_string |
| 482 |
#+xview |
| 483 |
"quit" |
| 484 |
#+sunview |
| 485 |
panel_label_image |
| 486 |
#+sunview |
| 487 |
(panel_button_image *panel* "quit" 5) |
| 488 |
panel_notify_proc (pod-address 'quit-proc)) |
| 489 |
(window_fit *panel*) |
| 490 |
(setq *canvas* |
| 491 |
(window_create_canvas |
| 492 |
*Frame* win_width 300 win_height 200 |
| 493 |
win_x 0 win_below *panel* |
| 494 |
)) |
| 495 |
(setq *paint* (canvas_paint_window *canvas*)) |
| 496 |
(window_set *paint* |
| 497 |
;;; win_ignore_pick_event loc_still |
| 498 |
win_consume_pick_event loc_drag |
| 499 |
win_consume_pick_event loc_move |
| 500 |
win_consume_pick_event loc_winenter |
| 501 |
win_consume_pick_event loc_winexit |
| 502 |
win_consume_pick_event win_in_transit_events |
| 503 |
win_consume_pick_event win_mouse_buttons |
| 504 |
win_event_proc (pod-address 'eventer-window-handler)) |
| 505 |
(setq *pixwin* (canvas_pixwin *canvas*)) |
| 506 |
(pw_polygon_2 *pixwin* 0 0 1 #(3) #(10 10 100 10 50 50) pix_set 0 0 0) |
| 507 |
(pw_polyline *pixwin* 0 0 3 |
| 508 |
(list #f(50 10) #f(150 10) #f(100 50)) 0 0 0 pix_set) |
| 509 |
(pw_polypoint *pixwin* 0 0 3 '(10 20 200 20 150 50) pix_set) |
| 510 |
(pw_text (canvas_pixwin *canvas*) 50 180 pix_src 0 "test desuyo") |
| 511 |
(window_fit *Frame*) |
| 512 |
(window_set *Frame* win_show true) |
| 513 |
(notify_do_dispatch) |
| 514 |
) |