-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new lib ImCoolbar / Step 1: Reference the new library
(was forced to fork the library to fix a missing include)
- Loading branch information
Showing
12 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""ImCoolbar: A Cool bar for Dear ImGui | ||
Python bindings for https://github.com/aiekick/ImCoolBar | ||
""" | ||
|
||
from typing import overload | ||
|
||
|
||
|
||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
# <litgen_stub> // Autogenerated code below! Do not edit! | ||
# </litgen_stub> // Autogenerated code end! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Part of ImGui Bundle - MIT License - Copyright (c) 2022-2023 Pascal Thomet - https://github.com/pthom/imgui_bundle | ||
import os | ||
|
||
import litgen | ||
|
||
|
||
THIS_DIR = os.path.dirname(__file__) | ||
PYDEF_DIR = THIS_DIR | ||
STUB_DIR = THIS_DIR + "/../../../bindings/imgui_bundle/" | ||
|
||
CPP_HEADERS_DIR = THIS_DIR + "/../ImCoolBar" | ||
|
||
|
||
def main(): | ||
print("autogenerate_imcoolbar") | ||
input_cpp_header = CPP_HEADERS_DIR + "/ImCoolbar.h" | ||
output_cpp_pydef_file = PYDEF_DIR + "/pybind_imcoolbar.cpp" | ||
output_stub_pyi_file = STUB_DIR + "/im_cool_bar.pyi" | ||
|
||
# Configure options | ||
options = litgen.LitgenOptions() | ||
# options.namespace_root__regex = "LIBNAME" | ||
# options.fn_params_output_modifiable_immutable_to_return__regex = r".*" | ||
# options.python_run_black_formatter = True | ||
|
||
litgen.write_generated_code_for_file( | ||
options, | ||
input_cpp_header_file=input_cpp_header, | ||
output_cpp_pydef_file=output_cpp_pydef_file, | ||
output_stub_pyi_file=output_stub_pyi_file, | ||
omit_boxed_types=True, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../bindings/imgui_bundle/im_cool_bar.pyi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Part of ImGui Bundle - MIT License - Copyright (c) 2022-2023 Pascal Thomet - https://github.com/pthom/imgui_bundle | ||
#include <pybind11/pybind11.h> | ||
#include <pybind11/stl.h> | ||
#include <pybind11/functional.h> | ||
#include <pybind11/numpy.h> | ||
|
||
#include "ImCoolBar/ImCoolbar.h" // Change this include to the library you are binding | ||
|
||
namespace py = pybind11; | ||
|
||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
// <litgen_glue_code> // Autogenerated code below! Do not edit! | ||
|
||
// </litgen_glue_code> // Autogenerated code end | ||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE END !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
|
||
|
||
void py_init_module_imcoolbar(py::module& m) | ||
{ | ||
using namespace ImGui; | ||
|
||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
// <litgen_pydef> // Autogenerated code below! Do not edit! | ||
// </litgen_pydef> // Autogenerated code end | ||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AUTOGENERATED CODE END !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters