comparison dwt/internal/c/gtk.d @ 56:002bcca59004

Added tools to verify the struct sized of C binding. Tweaks were necessary.
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Jan 2008 01:30:15 +0100
parents 787b5413b0ce
children 1f0d924801f4
comparison
equal deleted inserted replaced
55:93981635e709 56:002bcca59004
2241 } 2241 }
2242 struct _GtkTableRowCol { 2242 struct _GtkTableRowCol {
2243 ushort requisition; 2243 ushort requisition;
2244 ushort allocation; 2244 ushort allocation;
2245 ushort spacing; 2245 ushort spacing;
2246 uint bitfield0; 2246 ubyte bitfield0;
2247 // uint need_expand // bits 0 .. 1 2247 // uint need_expand // bits 0 .. 1
2248 // uint need_shrink // bits 1 .. 2 2248 // uint need_shrink // bits 1 .. 2
2249 // uint expand // bits 2 .. 3 2249 // uint expand // bits 2 .. 3
2250 // uint shrink // bits 3 .. 4 2250 // uint shrink // bits 3 .. 4
2251 // uint empty // bits 4 .. 5 2251 // uint empty // bits 4 .. 5
2365 } 2365 }
2366 struct _GtkSizeGroup { 2366 struct _GtkSizeGroup {
2367 _GObject parent_instance; 2367 _GObject parent_instance;
2368 _GSList * widgets; 2368 _GSList * widgets;
2369 char mode; 2369 char mode;
2370 uint bitfield0; 2370 ubyte bitfield0;
2371 // uint have_width // bits 0 .. 1 2371 // uint have_width // bits 0 .. 1
2372 // uint have_height // bits 1 .. 2 2372 // uint have_height // bits 1 .. 2
2373 // uint ignore_hidden // bits 2 .. 3 2373 // uint ignore_hidden // bits 2 .. 3
2374 _GtkRequisition requisition; 2374 _GtkRequisition requisition;
2375 } 2375 }
2402 } 2402 }
2403 struct _GtkScrolledWindow { 2403 struct _GtkScrolledWindow {
2404 _GtkBin container; 2404 _GtkBin container;
2405 _GtkWidget * hscrollbar; 2405 _GtkWidget * hscrollbar;
2406 _GtkWidget * vscrollbar; 2406 _GtkWidget * vscrollbar;
2407 uint bitfield0; 2407 ubyte bitfield0;
2408 // uint hscrollbar_policy // bits 0 .. 2 2408 // uint hscrollbar_policy // bits 0 .. 2
2409 // uint vscrollbar_policy // bits 2 .. 4 2409 // uint vscrollbar_policy // bits 2 .. 4
2410 // uint hscrollbar_visible // bits 4 .. 5 2410 // uint hscrollbar_visible // bits 4 .. 5
2411 // uint vscrollbar_visible // bits 5 .. 6 2411 // uint vscrollbar_visible // bits 5 .. 6
2412 // uint window_placement // bits 6 .. 8 2412 // uint window_placement // bits 6 .. 8
2730 ushort current_width; 2730 ushort current_width;
2731 ushort current_height; 2731 ushort current_height;
2732 _GdkDrawable * plug_window; 2732 _GdkDrawable * plug_window;
2733 _GtkWidget * plug_widget; 2733 _GtkWidget * plug_widget;
2734 short xembed_version; 2734 short xembed_version;
2735 uint bitfield0; 2735 ubyte bitfield0;
2736 // uint same_app // bits 0 .. 1 2736 // uint same_app // bits 0 .. 1
2737 // uint focus_in // bits 1 .. 2 2737 // uint focus_in // bits 1 .. 2
2738 // uint have_size // bits 2 .. 3 2738 // uint have_size // bits 2 .. 3
2739 // uint need_map // bits 3 .. 4 2739 // uint need_map // bits 3 .. 4
2740 // uint is_mapped // bits 4 .. 5 2740 // uint is_mapped // bits 4 .. 5
3457 _GdkDrawable * pixmap_closed; 3457 _GdkDrawable * pixmap_closed;
3458 _GdkDrawable * mask_closed; 3458 _GdkDrawable * mask_closed;
3459 _GdkDrawable * pixmap_opened; 3459 _GdkDrawable * pixmap_opened;
3460 _GdkDrawable * mask_opened; 3460 _GdkDrawable * mask_opened;
3461 ushort level; 3461 ushort level;
3462 uint bitfield0; 3462 ubyte bitfield0;
3463 // uint is_leaf // bits 0 .. 1 3463 // uint is_leaf // bits 0 .. 1
3464 // uint expanded // bits 1 .. 2 3464 // uint expanded // bits 1 .. 2
3465 } 3465 }
3466 struct _GtkCTreeClass { 3466 struct _GtkCTreeClass {
3467 _GtkCListClass parent_class; 3467 _GtkCListClass parent_class;
3716 _GtkWidget * popup; 3716 _GtkWidget * popup;
3717 _GtkWidget * popwin; 3717 _GtkWidget * popwin;
3718 _GtkWidget * list; 3718 _GtkWidget * list;
3719 uint entry_change_id; 3719 uint entry_change_id;
3720 uint list_change_id; 3720 uint list_change_id;
3721 uint bitfield0; 3721 ubyte bitfield0;
3722 // uint value_in_list // bits 0 .. 1 3722 // uint value_in_list // bits 0 .. 1
3723 // uint ok_if_empty // bits 1 .. 2 3723 // uint ok_if_empty // bits 1 .. 2
3724 // uint case_sensitive // bits 2 .. 3 3724 // uint case_sensitive // bits 2 .. 3
3725 // uint use_arrows // bits 3 .. 4 3725 // uint use_arrows // bits 3 .. 4
3726 // uint use_arrows_always // bits 4 .. 5 3726 // uint use_arrows_always // bits 4 .. 5
4679 int layout_style; 4679 int layout_style;
4680 } 4680 }
4681 struct _GtkBoxChild { 4681 struct _GtkBoxChild {
4682 _GtkWidget * widget; 4682 _GtkWidget * widget;
4683 ushort padding; 4683 ushort padding;
4684 uint bitfield0; 4684 ubyte bitfield0;
4685 // uint expand // bits 0 .. 1 4685 // uint expand // bits 0 .. 1
4686 // uint fill // bits 1 .. 2 4686 // uint fill // bits 1 .. 2
4687 // uint pack // bits 2 .. 3 4687 // uint pack // bits 2 .. 3
4688 // uint is_secondary // bits 3 .. 4 4688 // uint is_secondary // bits 3 .. 4
4689 } 4689 }
4692 } 4692 }
4693 struct _GtkBox { 4693 struct _GtkBox {
4694 _GtkContainer container; 4694 _GtkContainer container;
4695 _GList * children; 4695 _GList * children;
4696 short spacing; 4696 short spacing;
4697 uint bitfield0; 4697 ubyte bitfield0;
4698 // uint homogeneous // bits 0 .. 1 4698 // uint homogeneous // bits 0 .. 1
4699 } 4699 }
4700 struct _GtkAssistantClass { 4700 struct _GtkAssistantClass {
4701 _GtkWindowClass parent_class; 4701 _GtkWindowClass parent_class;
4702 _BCD_func__17126 prepare; 4702 _BCD_func__17126 prepare;