1 ##########################################################################
3 # Copyright 2011 Jose Fonseca
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 ##########################################################################/
30 HRESULT = Enum("HRESULT", [
31 "D2DERR_UNSUPPORTED_PIXEL_FORMAT",
32 "D2DERR_INSUFFICIENT_BUFFER",
34 "D2DERR_NOT_INITIALIZED",
35 "D2DERR_UNSUPPORTED_OPERATION",
36 "D2DERR_SCANNER_FAILED",
37 "D2DERR_SCREEN_ACCESS_DENIED",
38 "D2DERR_DISPLAY_STATE_INVALID",
40 "D2DERR_INTERNAL_ERROR",
41 "D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED",
42 "D2DERR_INVALID_CALL",
43 "D2DERR_NO_HARDWARE_DEVICE",
44 "D2DERR_RECREATE_TARGET",
45 "D2DERR_TOO_MANY_SHADER_ELEMENTS",
46 "D2DERR_SHADER_COMPILE_FAILED",
47 "D2DERR_MAX_TEXTURE_SIZE_EXCEEDED",
48 "D2DERR_UNSUPPORTED_VERSION",
50 "D2DERR_WRONG_FACTORY",
51 "D2DERR_LAYER_ALREADY_IN_USE",
52 "D2DERR_POP_CALL_DID_NOT_MATCH_PUSH",
53 "D2DERR_WRONG_RENDER_TARGET",
54 "D2DERR_PUSH_POP_UNBALANCED",
55 "D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT",
56 "D2DERR_INCOMPATIBLE_BRUSH_TYPES",
58 "D2DERR_TARGET_NOT_GDI_COMPATIBLE",
59 "D2DERR_TEXT_EFFECT_IS_WRONG_TYPE",
60 "D2DERR_TEXT_RENDERER_NOT_RELEASED",
61 "D2DERR_EXCEEDS_MAX_BITMAP_SIZE",