Changeset 46
- Timestamp:
- 06/01/06 20:10:38 (2 years ago)
- Files:
-
- trunk/bcd/cairo/cairo.d (modified) (1 diff)
- trunk/bcd/gdk/gdk.d (modified) (1 diff)
- trunk/bcd/gen/bcdgen.d (modified) (4 diffs)
- trunk/bcd/glib2/glib_object.d (modified) (1 diff)
- trunk/bcd/gtk2/gtk.d (modified) (3 diffs)
- trunk/bcd/pango/pango.d (modified) (1 diff)
- trunk/scripts/gdk.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bcd/cairo/cairo.d
r42 r46 1 1 /* THIS FILE GENERATED BY bcd.gen */ 2 2 module bcd.cairo.cairo; 3 const int CAIRO_VERSION_MAJOR = 1; 4 const int CAIRO_VERSION_MINOR = 0; 5 const int CAIRO_VERSION_MICRO = 0; 6 const int CAIRO_HAS_XLIB_SURFACE = 1; 7 const int CAIRO_HAS_FT_FONT = 1; 8 const int CAIRO_HAS_PNG_FUNCTIONS = 1; 3 9 enum _cairo_filter { 4 10 CAIRO_FILTER_FAST=0, trunk/bcd/gdk/gdk.d
r42 r46 4 4 import bcd.pango.pango; 5 5 import bcd.glib2.glib; 6 const int GDK_PIXBUF_FEATURES_H = 1; 7 const int GDK_MAX_TIMECOORD_AXES = 128; 6 8 alias _GdkWindowObjectClass GdkWindowObjectClass; 7 9 alias _GdkDrawableClass GdkDrawableClass; trunk/bcd/gen/bcdgen.d
r45 r46 79 79 writefln("Options:"); 80 80 writefln(" -I<include prefix>"); 81 writefln(" -N<symbol to ignore>");82 81 writefln(" -C"); 83 82 writefln(" Read/write C instead of C++"); 84 writefln(" -R<include directory>=<BCD/D namespace>");85 writefln(" Depend upon other BCD namespaces.");86 83 writefln(" -A"); 87 84 writefln(" Include all symbols provided by headers in the same"); … … 89 86 writefln(" they are actually provded by the included file."); 90 87 writefln(" -F<forced import>"); 91 writefln(" - T<template class>");92 writefln(" Make the given template class accessable from D.");88 writefln(" -R<include directory>=<BCD/D namespace>"); 89 writefln(" Depend upon other BCD namespaces."); 93 90 writefln(" -E"); 94 91 writefln(" Generate const int's for unnamed enum values"); 92 writefln(" -T<template class>[=<count>]"); 93 writefln(" Make the given template class accessable from D. If the"); 94 writefln(" class has more than one template parameter, also provide"); 95 writefln(" the count."); 96 writefln(" -N<symbol to ignore>"); 95 97 return 1; 96 98 } … … 113 115 if (args[i][0..2] == "-I") { 114 116 incPrefix = args[i][2..args[i].length]; 117 115 118 } else if (args[i][0..2] == "-N") { 116 119 ignoreSyms ~= args[i][2..args[i].length]; 120 117 121 } else if (args[i] == "-C") { 118 122 outputC = true; 123 119 124 } else if (args[i][0..2] == "-R") { 120 125 char[] req = args[i][2..args[i].length]; … … 125 130 } 126 131 reqDependencies[req[0..eqloc]] = req[eqloc + 1 .. req.length]; 132 127 133 } else if (args[i] == "-A") { 128 134 outputAll = true; 135 129 136 } else if (args[i][0..2] == "-F") { 130 137 forcedImport ~= "import " ~ args[i][2..args[i].length] ~ ";\n"; 138 131 139 } else if (args[i][0..2] == "-T") { 132 templates ~= args[i][2..args[i].length] ~ "<DReflectedClass> __IGNORE_" ~ toString(onTemplate) ~ ";\n"; 140 char[] temp = args[i][2..args[i].length]; 141 int count = 1, eqloc; 142 143 eqloc = find(temp, '='); 144 if (eqloc != -1) { 145 count = atoi(temp[eqloc + 1 .. temp.length]); 146 temp = temp[0..eqloc]; 147 } 148 149 templates ~= temp ~ "<DReflectedClass"; 150 151 for (int i = 1; i < count; i++) 152 templates ~= ", DReflectedClass"; 153 154 templates ~= "> __IGNORE_" ~ toString(onTemplate) ~ ";\n"; 155 133 156 onTemplate++; 157 134 158 } else if (args[i] == "-E") { 135 159 outputEnumConst = true; 160 136 161 } else { 137 162 writefln("Argument %s not recognized.", args[i]); trunk/bcd/glib2/glib_object.d
r42 r46 3 3 struct _GStaticMutex {} 4 4 struct _GSystemThread {} 5 const double G_E = 2.7182818284590452353602874713526624977572470937000; 6 const double G_LN2 = 0.69314718055994530941723212145817656807550013436026; 7 const double G_LN10 = 2.3025850929940456840179914546843642076011014886288; 8 const double G_PI = 3.1415926535897932384626433832795028841971693993751; 9 const double G_PI_2 = 1.5707963267948966192313216916397514420985846996876; 10 const double G_PI_4 = 0.78539816339744830961566084581987572104929234984378; 11 const double G_SQRT2 = 1.4142135623730950488016887242096980785696718753769; 12 const int G_LITTLE_ENDIAN = 1234; 13 const int G_BIG_ENDIAN = 4321; 14 const int G_PDP_ENDIAN = 3412; 15 const int G_ALLOC_ONLY = 1; 16 const int G_ALLOC_AND_FREE = 2; 17 const int G_DATALIST_FLAGS_MASK = 0x3; 18 const int G_PRIORITY_HIGH = -100; 19 const int G_PRIORITY_DEFAULT = 0; 20 const int G_PRIORITY_HIGH_IDLE = 100; 21 const int G_PRIORITY_DEFAULT_IDLE = 200; 22 const int G_PRIORITY_LOW = 300; 23 const int G_USEC_PER_SEC = 1000000; 5 24 alias char gchar; 6 25 alias char * gchararray; trunk/bcd/gtk2/gtk.d
r42 r46 6 6 import bcd.gdk.gdk; 7 7 import bcd.glib2.glib; 8 const int GTK_BUTTONBOX_DEFAULT = -1; 9 const int GTK_MAX_COMPOSE_LEN = 7; 10 const int GTK_INPUT_ERROR = -1; 8 11 alias _GtkVSeparatorClass GtkVSeparatorClass; 9 12 alias _GtkSeparatorClass GtkSeparatorClass; … … 803 806 GTK_BUTTON_DRAGS=2, 804 807 GTK_BUTTON_EXPANDS=4, 808 } 809 enum __205 { 810 GTK_CLIST_IN_DRAG=1, 811 GTK_CLIST_ROW_HEIGHT_SET=2, 812 GTK_CLIST_SHOW_TITLES=4, 813 GTK_CLIST_ADD_MODE=16, 814 GTK_CLIST_AUTO_SORT=32, 815 GTK_CLIST_AUTO_RESIZE_BLOCKED=64, 816 GTK_CLIST_REORDERABLE=128, 817 GTK_CLIST_USE_DRAG_ICONS=256, 818 GTK_CLIST_DRAW_DRAG_LINE=512, 819 GTK_CLIST_DRAW_DRAG_RECT=1024, 805 820 } 806 821 alias _GtkVScrollbarClass GtkVScrollbarClass; … … 894 909 alias void function(void *, _BCD_func__10268, void *, _BCD_func__11666) _BCD_func__15269; 895 910 alias int function(void *) _BCD_func__15270; 911 enum __203 { 912 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID=-1, 913 GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID=-2, 914 } 896 915 enum GtkTreeModelFlags { 897 916 GTK_TREE_MODEL_ITERS_PERSIST=1, trunk/bcd/pango/pango.d
r42 r46 2 2 module bcd.pango.pango; 3 3 import bcd.glib2.glib; 4 const int PANGO_SCALE = 1024; 4 5 enum PangoRenderPart { 5 6 PANGO_RENDER_PART_FOREGROUND=0, trunk/scripts/gdk.sh
r42 r46 2 2 export CFLAGS="$CFLAGS `pkg-config --cflags gdk-2.0`" 3 3 4 rm -rf bcd/gdk 24 rm -rf bcd/gdk 5 5 6 6 echo gdk
