From 84c7eff4d77451d65268cbf0f357948488aff40f Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 23 Sep 2022 20:06:23 +0100 Subject: [PATCH] fix PyCharm not finding Color types in .pyi files, fixes https://github.com/electronstudio/raylib-python-cffi/issues/88 --- dynamic/raylib/__init__.pyi | 27 ++++++++++++++++++++++++ make_docs.sh | 2 ++ pyray/__init__.pyi | 41 +++++++++++++++++++++++++++++++++++++ raylib/__init__.pyi | 41 +++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) diff --git a/dynamic/raylib/__init__.pyi b/dynamic/raylib/__init__.pyi index a640ad9..707eebf 100644 --- a/dynamic/raylib/__init__.pyi +++ b/dynamic/raylib/__init__.pyi @@ -3010,3 +3010,30 @@ rlShaderUniformDataType: int rlTextureFilter: int rlTraceLogLevel: int rlVertexBuffer: struct + +LIGHTGRAY =( 200, 200, 200, 255 ) +GRAY =( 130, 130, 130, 255 ) +DARKGRAY =( 80, 80, 80, 255 ) +YELLOW =( 253, 249, 0, 255 ) +GOLD =( 255, 203, 0, 255 ) +ORANGE =( 255, 161, 0, 255 ) +PINK =( 255, 109, 194, 255 ) +RED =( 230, 41, 55, 255 ) +MAROON =( 190, 33, 55, 255 ) +GREEN =( 0, 228, 48, 255 ) +LIME =( 0, 158, 47, 255 ) +DARKGREEN =( 0, 117, 44, 255 ) +SKYBLUE =( 102, 191, 255, 255 ) +BLUE =( 0, 121, 241, 255 ) +DARKBLUE =( 0, 82, 172, 255 ) +PURPLE =( 200, 122, 255, 255 ) +VIOLET =( 135, 60, 190, 255 ) +DARKPURPLE =( 112, 31, 126, 255 ) +BEIGE =( 211, 176, 131, 255 ) +BROWN =( 127, 106, 79, 255 ) +DARKBROWN =( 76, 63, 47, 255 ) +WHITE =( 255, 255, 255, 255 ) +BLACK =( 0, 0, 0, 255 ) +BLANK =( 0, 0, 0, 0 ) +MAGENTA =( 255, 0, 255, 255 ) +RAYWHITE =( 245, 245, 245, 255 ) \ No newline at end of file diff --git a/make_docs.sh b/make_docs.sh index 1647c79..9709d99 100755 --- a/make_docs.sh +++ b/make_docs.sh @@ -13,7 +13,9 @@ python3 create_enums.py > dynamic/raylib/enums.py pip3 install sphinx-autoapi myst_parser sphinx_rtd_theme python3 create_stub_pyray.py > pyray/__init__.pyi python3 create_enums.py >> pyray/__init__.pyi +cat raylib/colors.py >> pyray/__init__.pyi python3 create_stub_static.py >raylib/__init__.pyi +cat raylib/colors.py >> raylib/__init__.pyi rm -r docs cd docs-src make clean ; make html ; mv _build/html/ ../docs/ diff --git a/pyray/__init__.pyi b/pyray/__init__.pyi index 9602313..a54a128 100644 --- a/pyray/__init__.pyi +++ b/pyray/__init__.pyi @@ -4226,3 +4226,44 @@ class GuiIconName(IntEnum): ICON_254 = 254 ICON_255 = 255 +# Copyright (c) 2021 Richard Smith and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# licenses when the conditions for such availability set forth in the Eclipse +# Public License, v. 2.0 are satisfied: GNU General Public License, version 2 +# with the GNU Classpath Exception which is +# available at https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + +LIGHTGRAY =( 200, 200, 200, 255 ) +GRAY =( 130, 130, 130, 255 ) +DARKGRAY =( 80, 80, 80, 255 ) +YELLOW =( 253, 249, 0, 255 ) +GOLD =( 255, 203, 0, 255 ) +ORANGE =( 255, 161, 0, 255 ) +PINK =( 255, 109, 194, 255 ) +RED =( 230, 41, 55, 255 ) +MAROON =( 190, 33, 55, 255 ) +GREEN =( 0, 228, 48, 255 ) +LIME =( 0, 158, 47, 255 ) +DARKGREEN =( 0, 117, 44, 255 ) +SKYBLUE =( 102, 191, 255, 255 ) +BLUE =( 0, 121, 241, 255 ) +DARKBLUE =( 0, 82, 172, 255 ) +PURPLE =( 200, 122, 255, 255 ) +VIOLET =( 135, 60, 190, 255 ) +DARKPURPLE =( 112, 31, 126, 255 ) +BEIGE =( 211, 176, 131, 255 ) +BROWN =( 127, 106, 79, 255 ) +DARKBROWN =( 76, 63, 47, 255 ) +WHITE =( 255, 255, 255, 255 ) +BLACK =( 0, 0, 0, 255 ) +BLANK =( 0, 0, 0, 0 ) +MAGENTA =( 255, 0, 255, 255 ) +RAYWHITE =( 245, 245, 245, 255 ) + diff --git a/raylib/__init__.pyi b/raylib/__init__.pyi index 6a56acf..2bcd1b1 100644 --- a/raylib/__init__.pyi +++ b/raylib/__init__.pyi @@ -3964,3 +3964,44 @@ rlShaderUniformDataType: int rlTextureFilter: int rlTraceLogLevel: int rlVertexBuffer: struct +# Copyright (c) 2021 Richard Smith and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# licenses when the conditions for such availability set forth in the Eclipse +# Public License, v. 2.0 are satisfied: GNU General Public License, version 2 +# with the GNU Classpath Exception which is +# available at https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + +LIGHTGRAY =( 200, 200, 200, 255 ) +GRAY =( 130, 130, 130, 255 ) +DARKGRAY =( 80, 80, 80, 255 ) +YELLOW =( 253, 249, 0, 255 ) +GOLD =( 255, 203, 0, 255 ) +ORANGE =( 255, 161, 0, 255 ) +PINK =( 255, 109, 194, 255 ) +RED =( 230, 41, 55, 255 ) +MAROON =( 190, 33, 55, 255 ) +GREEN =( 0, 228, 48, 255 ) +LIME =( 0, 158, 47, 255 ) +DARKGREEN =( 0, 117, 44, 255 ) +SKYBLUE =( 102, 191, 255, 255 ) +BLUE =( 0, 121, 241, 255 ) +DARKBLUE =( 0, 82, 172, 255 ) +PURPLE =( 200, 122, 255, 255 ) +VIOLET =( 135, 60, 190, 255 ) +DARKPURPLE =( 112, 31, 126, 255 ) +BEIGE =( 211, 176, 131, 255 ) +BROWN =( 127, 106, 79, 255 ) +DARKBROWN =( 76, 63, 47, 255 ) +WHITE =( 255, 255, 255, 255 ) +BLACK =( 0, 0, 0, 255 ) +BLANK =( 0, 0, 0, 0 ) +MAGENTA =( 255, 0, 255, 255 ) +RAYWHITE =( 245, 245, 245, 255 ) +