mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Apply pre-commit hooks to all files
This commit is contained in:
parent
892c4c0062
commit
aea4ecca99
288 changed files with 198 additions and 371 deletions
|
@ -25,4 +25,3 @@ sixtyfps-corelib = { version = "=0.1.1", path="../../sixtyfps_runtime/corelib",
|
|||
sixtyfps-rendering-backend-default = { version = "=0.1.1", path="../../sixtyfps_runtime/rendering_backends/default" }
|
||||
sixtyfps-rendering-backend-testing = { version = "=0.1.1", path="../../sixtyfps_runtime/rendering_backends/testing", optional = true }
|
||||
sixtyfps-interpreter = { version = "=0.1.1", path="../../sixtyfps_runtime/interpreter", features = ["ffi"], optional = true }
|
||||
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
Please contact info@sixtyfps.io for more information.
|
||||
LICENSE END */
|
||||
/* Dummy file to make cmake happy */
|
||||
#include <sixtyfps.h>
|
||||
#include <sixtyfps.h>
|
||||
|
|
2
api/sixtyfps-cpp/docs/.gitignore
vendored
2
api/sixtyfps-cpp/docs/.gitignore
vendored
|
@ -1 +1 @@
|
|||
Pipfile.lock
|
||||
Pipfile.lock
|
||||
|
|
|
@ -11,4 +11,4 @@
|
|||
img.logo {
|
||||
max-height: 70px;
|
||||
border-radius: 12% !important;
|
||||
}
|
||||
}
|
||||
|
|
2
api/sixtyfps-cpp/docs/_templates/layout.html
vendored
2
api/sixtyfps-cpp/docs/_templates/layout.html
vendored
|
@ -3,4 +3,4 @@
|
|||
{{ super() }}
|
||||
{% include "../../../../docs/resources/sixtyfps-docs-preview.html" %}
|
||||
{% include "../../../../docs/resources/sixtyfps-docs-highlight.html" %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -87,4 +87,4 @@ After extracting the artifact you can place the `lib` directory into your `CMAKE
|
|||
in locating the package.
|
||||
|
||||
In the next section you will learn how to use the installed library in your application
|
||||
and load `.60` UI files.
|
||||
and load `.60` UI files.
|
||||
|
|
|
@ -18,14 +18,14 @@ import textwrap
|
|||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'SixtyFPS C++'
|
||||
copyright = '2021, info@sixtyfps.io'
|
||||
author = 'info@sixtyfps.io'
|
||||
project = "SixtyFPS C++"
|
||||
copyright = "2021, info@sixtyfps.io"
|
||||
author = "info@sixtyfps.io"
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
version = '0.1.1'
|
||||
version = "0.1.1"
|
||||
|
||||
cpp_index_common_prefix = [ "sixtyfps::", "sixtyfps::interpreter::" ]
|
||||
cpp_index_common_prefix = ["sixtyfps::", "sixtyfps::interpreter::"]
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
|
@ -34,16 +34,15 @@ cpp_index_common_prefix = [ "sixtyfps::", "sixtyfps::interpreter::" ]
|
|||
# ones.
|
||||
extensions = ["breathe", "myst_parser", "exhale", "sphinx_markdown_tables"]
|
||||
|
||||
breathe_projects = {
|
||||
"SixtyFPS": "./docs/xml"
|
||||
}
|
||||
breathe_projects = {"SixtyFPS": "./docs/xml"}
|
||||
breathe_default_project = "SixtyFPS"
|
||||
|
||||
exhale_args = {
|
||||
"containmentFolder": "./api",
|
||||
"rootFileName": "library_root.rst",
|
||||
"rootFileTitle": "C++ API Reference",
|
||||
"afterTitleDescription": textwrap.dedent('''
|
||||
"containmentFolder": "./api",
|
||||
"rootFileName": "library_root.rst",
|
||||
"rootFileTitle": "C++ API Reference",
|
||||
"afterTitleDescription": textwrap.dedent(
|
||||
"""
|
||||
The following sections present the C++ API Reference. All types are
|
||||
within the :ref:`sixtyfps<namespace_sixtyfps>` namespace and are accessible by including
|
||||
the :code:`sixtyfps.h` header file.
|
||||
|
@ -52,27 +51,36 @@ exhale_args = {
|
|||
you can use the classes in :ref:`sixtyfps::interpreter<namespace_sixtyfps__interpreter>`, starting at
|
||||
:cpp:class:`sixtyfps::interpreter::ComponentCompiler`. You need to include
|
||||
the :code:`sixtyfps_interpreter.h` header file.
|
||||
'''),
|
||||
"doxygenStripFromPath": "..",
|
||||
"createTreeView": True,
|
||||
"exhaleExecutesDoxygen": True,
|
||||
"exhaleDoxygenStdin": '''INPUT = ../../api/sixtyfps-cpp/include
|
||||
"""
|
||||
),
|
||||
"doxygenStripFromPath": "..",
|
||||
"createTreeView": True,
|
||||
"exhaleExecutesDoxygen": True,
|
||||
"exhaleDoxygenStdin": """INPUT = ../../api/sixtyfps-cpp/include
|
||||
EXCLUDE_SYMBOLS = sixtyfps::cbindgen_private* sixtyfps::private_api* vtable*
|
||||
EXCLUDE = ../../api/sixtyfps-cpp/include/vtable.h ../../api/sixtyfps-cpp/include/sixtyfps_testing.h
|
||||
ENABLE_PREPROCESSING = YES
|
||||
PREDEFINED += DOXYGEN
|
||||
WARN_AS_ERROR = YES'''
|
||||
WARN_AS_ERROR = YES""",
|
||||
}
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
templates_path = ["_templates"]
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = ['_build', 'html/_static/collapsible-lists/LICENSE.md', 'Thumbs.db', '.DS_Store', 'markdown/tutorial',
|
||||
'markdown/building.md', 'markdown/development.md', 'markdown/install_qt.md',
|
||||
'markdown/README.md', 'README.md'
|
||||
exclude_patterns = [
|
||||
"_build",
|
||||
"html/_static/collapsible-lists/LICENSE.md",
|
||||
"Thumbs.db",
|
||||
".DS_Store",
|
||||
"markdown/tutorial",
|
||||
"markdown/building.md",
|
||||
"markdown/development.md",
|
||||
"markdown/install_qt.md",
|
||||
"markdown/README.md",
|
||||
"README.md",
|
||||
]
|
||||
|
||||
|
||||
|
@ -81,16 +89,14 @@ exclude_patterns = ['_build', 'html/_static/collapsible-lists/LICENSE.md', 'Thum
|
|||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
||||
html_theme_options = {
|
||||
"collapse_navigation" : False
|
||||
}
|
||||
html_theme_options = {"collapse_navigation": False}
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
html_static_path = ["_static"]
|
||||
|
||||
html_show_sourcelink = False
|
||||
|
||||
|
@ -110,5 +116,6 @@ rst_epilog = """
|
|||
.. _Repetition: ../markdown/langref.html#repetition
|
||||
"""
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.add_css_file('theme_tweak.css')
|
||||
app.add_css_file("theme_tweak.css")
|
||||
|
|
|
@ -94,4 +94,3 @@ For a quick edit and preview cycle, you can also use the :code:`sixtyfps-viewer`
|
|||
if you have `Cargo <https://marketplace.visualstudio.com/items?itemName=SixtyFPS.sixtyfps-vscode>`_ installed.
|
||||
|
||||
In the next section you will learn how to install the SixtyFPS C++ library and the CMake build system integration.
|
||||
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
<rect x="176" y="60" width="90" height="60" rx="9" ry="9" fill="#000000" stroke="#000000" transform="translate(2,3)rotate(346,221,90)" opacity="0.25"/>
|
||||
<rect x="176" y="60" width="90" height="60" rx="9" ry="9" fill="#152e7b" stroke="#000000" transform="rotate(346,221,90)" pointer-events="all"/>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
@ -29,4 +29,4 @@ LICENSE END */
|
|||
# else
|
||||
# define SIXTYFPS_DLL_IMPORT
|
||||
# endif
|
||||
#endif // !defined(DOXYGEN)
|
||||
#endif // !defined(DOXYGEN)
|
||||
|
|
|
@ -188,4 +188,3 @@ public:
|
|||
|
||||
|
||||
} //namespace vtable
|
||||
|
||||
|
|
|
@ -122,4 +122,4 @@ TEST_CASE("SharedVector")
|
|||
REQUIRE(copy.capacity() == orig_cap);
|
||||
copy.clear(); // copy is not shared (anymore), retain capacity.
|
||||
REQUIRE(copy.capacity() == orig_cap);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
This file is also available under commercial licensing terms.
|
||||
Please contact info@sixtyfps.io for more information.
|
||||
LICENSE END */
|
||||
export Test := Rectangle {}
|
||||
export Test := Rectangle {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue