Changeset 430
- Timestamp:
- 02/25/2008 12:40:23 (6 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
lib/shoes/cache.rb (modified) (1 diff)
-
shoes/canvas.h (modified) (1 diff)
-
shoes/config.h (modified) (3 diffs)
-
shoes/ruby.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/shoes/cache.rb
r410 r430 36 36 end 37 37 end 38 require 'rubygems/open-uri'39 38 require 'rubygems/installer' 40 39 class << Gem::Ext::ExtConfBuilder -
trunk/shoes/canvas.h
r422 r430 240 240 void shoes_slot_init(VALUE, SHOES_SLOT_OS *, int, int, int, int, int); 241 241 cairo_t *shoes_cairo_create(SHOES_SLOT_OS *, int, int, int); 242 void shoes_control_hide_ref(SHOES_CONTROL_REF); 243 void shoes_control_show_ref(SHOES_CONTROL_REF); 242 244 243 245 VALUE shoes_app_main(int, VALUE *, VALUE); -
trunk/shoes/config.h
r402 r430 61 61 } shoes_world_gtk, SHOES_WORLD_OS; 62 62 63 #define SHOES_CONTROL_REF GtkWidget * 63 64 #define DC(slot) slot.canvas 64 65 #define HAS_DRAWABLE(slot) GTK_LAYOUT(slot.canvas)->bin_window != 0 … … 104 105 #define kShoesSlotData 'SLOT' 105 106 107 #define SHOES_CONTROL_REF ControlRef 106 108 #define DC(slot) slot.view 107 109 #define HAS_DRAWABLE(slot) slot.context != NULL … … 156 158 } sheos_world_win32, SHOES_WORLD_OS; 157 159 160 #define SHOES_CONTROL_REF HWND 158 161 #define DC(slot) slot.window 159 162 #define HAS_DRAWABLE(slot) slot.window != NULL -
trunk/shoes/ruby.c
r428 r430 411 411 } 412 412 413 void 414 shoes_control_hide_ref(SHOES_CONTROL_REF ref) 415 { 416 #ifdef SHOES_GTK 417 gtk_widget_hide(ref); 418 #endif 419 #ifdef SHOES_QUARTZ 420 HIViewSetVisible(ref, false); 421 #endif 422 #ifdef SHOES_WIN32 423 ShowWindow(ref, SW_HIDE); 424 #endif 425 } 426 427 void 428 shoes_control_show_ref(SHOES_CONTROL_REF ref) 429 { 430 #ifdef SHOES_GTK 431 gtk_widget_show(ref); 432 #endif 433 #ifdef SHOES_QUARTZ 434 HIViewSetVisible(ref, true); 435 #endif 436 #ifdef SHOES_WIN32 437 ShowWindow(ref, SW_SHOW); 438 #endif 439 } 440 413 441 // 414 442 // Macros for setting up drawing … … 1010 1038 GET_STRUCT(video, self_t); 1011 1039 ATTRSET(self_t->attr, hidden, Qtrue); 1012 #ifdef SHOES_GTK 1013 gtk_widget_hide(self_t->ref); 1014 #endif 1015 #ifdef SHOES_QUARTZ 1016 HIViewSetVisible(self_t->ref, false); 1017 #endif 1018 #ifdef SHOES_WIN32 1019 ShowWindow(self_t->ref, SW_HIDE); 1020 #endif 1040 shoes_control_hide_ref(self_t->ref); 1021 1041 shoes_canvas_repaint_all(self_t->parent); 1022 1042 return self; … … 1028 1048 GET_STRUCT(video, self_t); 1029 1049 ATTRSET(self_t->attr, hidden, Qfalse); 1030 #ifdef SHOES_GTK 1031 gtk_widget_show(self_t->ref); 1032 #endif 1033 #ifdef SHOES_QUARTZ 1034 HIViewSetVisible(self_t->ref, true); 1035 #endif 1036 #ifdef SHOES_WIN32 1037 ShowWindow(self_t->ref, SW_SHOW); 1038 #endif 1050 shoes_control_show_ref(self_t->ref); 1039 1051 shoes_canvas_repaint_all(self_t->parent); 1040 1052 return self; … … 2564 2576 GET_STRUCT(control, self_t); 2565 2577 ATTRSET(self_t->attr, hidden, Qtrue); 2566 #ifdef SHOES_GTK 2567 gtk_widget_hide(self_t->ref); 2568 #endif 2569 #ifdef SHOES_QUARTZ 2570 HIViewSetVisible(self_t->ref, false); 2571 #endif 2572 #ifdef SHOES_WIN32 2573 ShowWindow(self_t->ref, SW_HIDE); 2574 #endif 2578 shoes_control_hide_ref(self_t->ref); 2575 2579 return self; 2576 2580 } … … 2581 2585 GET_STRUCT(control, self_t); 2582 2586 ATTRSET(self_t->attr, hidden, Qfalse); 2583 #ifdef SHOES_GTK 2584 gtk_widget_show(self_t->ref); 2585 #endif 2586 #ifdef SHOES_QUARTZ 2587 HIViewSetVisible(self_t->ref, true); 2588 #endif 2589 #ifdef SHOES_WIN32 2590 ShowWindow(self_t->ref, SW_SHOW); 2591 #endif 2587 shoes_control_show_ref(self_t->ref); 2592 2588 return self; 2593 2589 }
