1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module gtkglc.glgdktypes; 26 27 public import gtkc.glibtypes; 28 public import gtkc.gdktypes; 29 30 public enum GdkGLBufferMask 31 { 32 FRONT_LEFT_BUFFER_BIT = 1, 33 FRONT_RIGHT_BUFFER_BIT = 2, 34 BACK_LEFT_BUFFER_BIT = 4, 35 BACK_RIGHT_BUFFER_BIT = 8, 36 AUX_BUFFERS_BIT = 16, 37 DEPTH_BUFFER_BIT = 32, 38 STENCIL_BUFFER_BIT = 64, 39 ACCUM_BUFFER_BIT = 128, 40 } 41 alias GdkGLBufferMask GLBufferMask; 42 43 public enum GdkGLConfigAttrib 44 { 45 USE_GL = 1, 46 BUFFER_SIZE = 2, 47 LEVEL = 3, 48 RGBA = 4, 49 DOUBLEBUFFER = 5, 50 STEREO = 6, 51 AUX_BUFFERS = 7, 52 RED_SIZE = 8, 53 GREEN_SIZE = 9, 54 BLUE_SIZE = 10, 55 ALPHA_SIZE = 11, 56 DEPTH_SIZE = 12, 57 STENCIL_SIZE = 13, 58 ACCUM_RED_SIZE = 14, 59 ACCUM_GREEN_SIZE = 15, 60 ACCUM_BLUE_SIZE = 16, 61 ACCUM_ALPHA_SIZE = 17, 62 CONFIG_CAVEAT = 32, 63 X_VISUAL_TYPE = 34, 64 TRANSPARENT_TYPE = 35, 65 TRANSPARENT_INDEX_VALUE = 36, 66 TRANSPARENT_RED_VALUE = 37, 67 TRANSPARENT_GREEN_VALUE = 38, 68 TRANSPARENT_BLUE_VALUE = 39, 69 TRANSPARENT_ALPHA_VALUE = 40, 70 DRAWABLE_TYPE = 32784, 71 RENDER_TYPE = 32785, 72 X_RENDERABLE = 32786, 73 FBCONFIG_ID = 32787, 74 VISUAL_ID = 32779, 75 SCREEN = 32780, 76 SAMPLE_BUFFERS = 100000, 77 SAMPLES = 100001, 78 } 79 alias GdkGLConfigAttrib GLConfigAttrib; 80 81 public enum GdkGLConfigCaveat 82 { 83 CONFIG_CAVEAT_DONT_CARE = 4294967295, 84 CONFIG_CAVEAT_NONE = 32768, 85 SLOW_CONFIG = 32769, 86 NON_CONFORMANT_CONFIG = 32781, 87 } 88 alias GdkGLConfigCaveat GLConfigCaveat; 89 90 public enum GdkGLConfigError 91 { 92 BAD_SCREEN = 1, 93 BAD_ATTRIBUTE = 2, 94 NO_EXTENSION = 3, 95 BAD_VISUAL = 4, 96 BAD_CONTEXT = 5, 97 BAD_VALUE = 6, 98 BAD_ENUM = 7, 99 } 100 alias GdkGLConfigError GLConfigError; 101 102 public enum GdkGLConfigMode 103 { 104 RGB = 0, 105 RGBA = 0, 106 INDEX = 1, 107 SINGLE = 0, 108 DOUBLE = 2, 109 STEREO = 4, 110 ALPHA = 8, 111 DEPTH = 16, 112 STENCIL = 32, 113 ACCUM = 64, 114 MULTISAMPLE = 128, 115 } 116 alias GdkGLConfigMode GLConfigMode; 117 118 public enum GdkGLDrawableAttrib 119 { 120 PRESERVED_CONTENTS = 32795, 121 WIDTH = 32797, 122 HEIGHT = 32798, 123 EVENT_MASK = 32799, 124 } 125 alias GdkGLDrawableAttrib GLDrawableAttrib; 126 127 public enum GdkGLDrawableTypeMask 128 { 129 WINDOW_BIT = 1, 130 } 131 alias GdkGLDrawableTypeMask GLDrawableTypeMask; 132 133 public enum GdkGLRenderType 134 { 135 RGBA_TYPE = 32788, 136 } 137 alias GdkGLRenderType GLRenderType; 138 139 public enum GdkGLRenderTypeMask 140 { 141 RGBA_BIT = 1, 142 } 143 alias GdkGLRenderTypeMask GLRenderTypeMask; 144 145 public enum GdkGLTransparentType 146 { 147 NONE = 32768, 148 RGB = 32776, 149 } 150 alias GdkGLTransparentType GLTransparentType; 151 152 public enum GdkGLVisualType 153 { 154 VISUAL_TYPE_DONT_CARE = 4294967295, 155 TRUE_COLOR = 32770, 156 DIRECT_COLOR = 32771, 157 } 158 alias GdkGLVisualType GLVisualType; 159 struct GdkGLConfigImpl; 160 struct GdkGLContextImpl; 161 struct GdkGLWindowImpl; 162 163 struct GdkGLConfig 164 { 165 GObject parentInstance; 166 GdkGLConfigImpl* impl; 167 } 168 169 struct GdkGLConfigClass 170 { 171 GObjectClass parentClass; 172 } 173 174 struct GdkGLContextClass 175 { 176 GObjectClass parentClass; 177 } 178 179 struct GdkGLDrawable; 180 181 struct GdkGLDrawableClass 182 { 183 GTypeInterface baseIface; 184 extern(C) GdkGLContext* function(GdkGLDrawable* gldrawable, GdkGLContext* shareList, int direct, int renderType) createGlContext; 185 extern(C) int function(GdkGLDrawable* gldrawable) isDoubleBuffered; 186 extern(C) void function(GdkGLDrawable* gldrawable) swapBuffers; 187 extern(C) void function(GdkGLDrawable* gldrawable) waitGl; 188 extern(C) void function(GdkGLDrawable* gldrawable) waitGdk; 189 extern(C) GdkGLConfig* function(GdkGLDrawable* gldrawable) getGlConfig; 190 } 191 192 struct GdkGLWindow 193 { 194 GObject parentInstance; 195 GdkGLWindowImpl* impl; 196 GdkWindow* window; 197 } 198 199 struct GdkGLWindowClass 200 { 201 GObjectClass parentClass; 202 } 203 204 public alias extern(C) void function() GdkGLProc;